Skip to main content
2 votes
Accepted

Refile to non-agenda files

The doc string for the variable org-refile-targets says: a specification of the files to be considered, either a list of files, or a symbol whose function or variable value will be used to retrieve a ...
NickD's user avatar
  • 30.8k
2 votes

How to refile to the top of another heading?

Found the answer on Reddit: https://www.reddit.com/r/emacs/comments/7kt7nh/is_it_possible_to_refile_an_orgmode_header_in/ To recap, use (setq org-reverse-note-order t) to revert the new notes order ...
Mingwei Zhang's user avatar
1 vote

Moving `*** b3` from `* b1 > ** b2 > *** b3` to `* a1 > ** a2 > *** b3` in Org mode

You will have to set your org-refile-use-outline-path to non-nil. From the documentation: Non-nil means provide refile targets as paths. So a level 3 headline will be available as level1/level2/...
Malle Yeno's user avatar
1 vote
Accepted

Moving `*** b3` from `* b1 > ** b2 > *** b3` to `* a1 > ** a2 > *** b3` in Org mode

avy-org-refile-as-child does it for me. I think avy comes with a standard spacemacs installation, at least I don't recall adding it. With the cursor on the line you wish to refile, call the function ...
user2567544's user avatar
1 vote
Accepted

Using regexp in org-refile-targets and the `:refile-targets` property in org-capture-templates

I just realised that this regexp can't work: the regexp option parses headings (Targets), not the olp (Desirable heading/Targets). The solution might lie in org-refile-targets-verify-function.
harabat's user avatar
  • 31
1 vote
Accepted

Prepend while refiling

The doc string of org-refile says: At the target location, the entry is filed as a subitem of the target heading. Depending on ‘org-reverse-note-order’, the new subitem will either be the first or ...
NickD's user avatar
  • 30.8k
1 vote

Capture at an arbitrary date

The capture template you linked to is the key here: ("j" "Journal" entry (file+olp+datetree "~/Documents/write/notes/journal/inbox.org") "* %? Entered on %U %i %a") The date you ...
glucas's user avatar
  • 20.6k
1 vote
Accepted

org-refile under a given heading

Turns out org-mode provides a function to retrieve existing refile targets, which means if it's OK to set org-refile-targets, we can just let org-mode do the hard work of creating the RFLOC variable. ...
Trevoke's user avatar
  • 2,450

Only top scored, non community-wiki answers of a minimum length are eligible