summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-05-12 12:50:14 -0700
committerFranck Cuny <fcuny@twitter.com>2019-05-12 12:50:14 -0700
commit24fc46957926d65f794c62056f234772377721d2 (patch)
treee8bbdf8f024dc8d802707d7892aea5c218199219 /emacs.d/custom
parent[emacs] Move org-mode notes to dropbox (diff)
downloademacs.d-24fc46957926d65f794c62056f234772377721d2.tar.gz
[emacs] fix refile for org-mode with swiper
There was an issue where swiper would only offer the name of the file
to refile to, not all the headings. Fix the configuration to make this
work as expected.
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-org.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el
index 11bc0d4..389a095 100644
--- a/emacs.d/custom/fcuny-org.el
+++ b/emacs.d/custom/fcuny-org.el
@@ -53,6 +53,13 @@
                           (expand-file-name "twitter/people.org" org-directory)
                           (expand-file-name "twitter/meetings.org" org-directory)))
 
+  ;; see https://github.com/abo-abo/swiper/issues/986
+  (org-goto-interface 'outline-path-completion)
+  (org-outline-path-complete-in-steps nil)
+  (org-refile-use-outline-path 'file)
+  (org-refile-allow-creating-parent-nodes 'confirm)
+  (org-refile-targets '((org-agenda-files :maxlevel . 4)))
+
   ;; for the agenda, I want to see tasks in order of priorities.
   (org-agenda-custom-commands
    '(("c" "Agenda by priorities"