From 9e0f0d435228078be4ada9013b048912bce80765 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 23 Feb 2021 21:40:39 -0800 Subject: [PATCH] Setup refiling in org-mode --- oni-org/oni-org.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 9957a75..3571c66 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0215.163512 +;; Version: 2021.0216.224209 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam) ;; This program is free software; you can redistribute it and/or modify @@ -471,6 +471,18 @@ After running it once remove it from `org-capture-after-finalize-hook'." (org-goto-first-child) (list (point-marker)))) +;;; Refile + +;; Set it up so that I can refile easily and still create new nodes when I +;; refile. Include the file in the outline path so that I can refile into them +;; and create top-level headings. +(setq org-refile-use-outline-path 'file + org-outline-path-complete-in-steps nil + org-refile-allow-creating-parent-nodes 'confirm + org-log-refile 'time) + +(setq org-refile-targets '((org-default-notes-file . (:maxlevel . 10)))) + ;;; org-journal (setq org-journal-dir (expand-file-name "~/documents/org/journal/"))