This may help, but I can’t take the credit. Someone in this forum wrote this
for me several years ago.
Cheers,
M
;; turn header into file
(defun turn-headline-into-org-mode-link ()
"Replace word at point by an Org mode link."
(interactive)
(when (org-at-heading-p)
(let ((hl-text (nth 4 (or
On Sun, Jan 5, 2014 at 4:56 PM, John Kitchin wrote:
> hmm.. I don't know if it was a bug, I ran the code on my system before
> sending it, and it worked for me ;)
Your original code ran for me as well, but it inserted
'::EXPORT_FILE_NAME::' where it should be just ':EXPORT_FILE_NAME:'
I am glad
hmm.. I don't know if it was a bug, I ran the code on my system before
sending it, and it worked for me ;) I am glad you figured it out on your
system.
you could avoid the double if statements like this:
(defun my-exp-headings-to-markdown ()
"Export each top-level heading to markdown."
(inter
On Sun, Jan 5, 2014 at 8:40 AM, John Kitchin wrote:
> Try this:
>
>
> (org-map-entries
> (lambda ()
>(let ((level (nth 1 (org-heading-components)))
> (title (nth 4 (org-heading-components
> (if (= level 1)
>
Alan,
On 1/4/2014 6:41 PM, Alan L Tyree wrote:
Use properties to set the export file name -- example:
:PROPERTIES:
:EXPORT_TITLE: Internet banking fraud
:EXPORT_FILE_NAME: internet-fraud
:EXPORT_AUTHOR: Alan L Tyree
:Citation: (2011) 22 JBFLP 214
:EXPORT_OPTIONS: num:nil toc:nil
:E
Try this:
(org-map-entries
(lambda ()
(let ((level (nth 1 (org-heading-components)))
(title (nth 4 (org-heading-components
(if (= level 1)
(org-entry-put (point) ":EXPORT_FILE_NAME:" title
nil nil)
It
Ista Zahn writes:
> On Sat, Jan 4, 2014 at 6:41 PM, Alan L Tyree wrote:
>> On 05/01/14 09:45, Charles Millar wrote:
>>>
>>> Ista and all,
>>>
>>> On 1/4/2014 5:29 PM, Ista Zahn wrote:
Hi all,
I'm looking for a way to export each top-level heading to a separate
markdown f
On Sat, Jan 4, 2014 at 6:41 PM, Alan L Tyree wrote:
> On 05/01/14 09:45, Charles Millar wrote:
>>
>> Ista and all,
>>
>> On 1/4/2014 5:29 PM, Ista Zahn wrote:
>>>
>>> Hi all,
>>>
>>> I'm looking for a way to export each top-level heading to a separate
>>> markdown file. Ideally I would like to hav
On 05/01/14 09:45, Charles Millar wrote:
Ista and all,
On 1/4/2014 5:29 PM, Ista Zahn wrote:
Hi all,
I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this
Ista and all,
On 1/4/2014 5:29 PM, Ista Zahn wrote:
Hi all,
I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this org file
---
Hi all,
I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this org file
---
* Section one
Section one text
* Section two
** Se
11 matches
Mail list logo