From 24fc46957926d65f794c62056f234772377721d2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 12 May 2019 12:50:14 -0700 Subject: [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. --- emacs.d/custom/fcuny-org.el | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- cgit 1.4.1