From b777182c817f111c46f53a2c18091bdd7623cca5 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 15 Apr 2023 12:57:15 -0400 Subject: [PATCH] setup org-refile to allow filing to root of an org-mode file as well as including *all* org-agenda-files as options ; adjustments to allow better helm completion were included in this (change org-outline-path-complete-in-steps for others if needed) --- common/_global.el | 5 +++++ org/config-org-agendas.el | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/common/_global.el b/common/_global.el index c3f3e65..658861e 100644 --- a/common/_global.el +++ b/common/_global.el @@ -261,6 +261,11 @@ ; org mode - multiple agenda buffers (setq org-agenda-sticky t) +; org show file name in refile, also allows refiling to the file as a top level headline +(setq org-refile-use-outline-path 'file) +(setq org-outline-path-complete-in-steps nil) +(setq org-refile-allow-creating-parent-nodes 'confirm) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; set font for emoji -- DOES NOT WORK ON MOBILE (when (eq system-type 'windows-nt) diff --git a/org/config-org-agendas.el b/org/config-org-agendas.el index 24f0b66..45f986a 100644 --- a/org/config-org-agendas.el +++ b/org/config-org-agendas.el @@ -98,6 +98,11 @@ )) ) +; use *all* org agenda files as refile targets +(setq org-refile-targets + '((nil :maxlevel . 3) + (org-agenda-files :maxlevel . 3))) + (require 'org-super-agenda) (org-super-agenda-mode)