aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org/oni-org.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-02-23 21:40:39 -0800
committerGravatar Tom Willemse2021-02-23 21:40:39 -0800
commit9e0f0d435228078be4ada9013b048912bce80765 (patch)
treecf112b14d7c32cfd25a7ecadc26e50eebe4c66c5 /oni-org/oni-org.el
parent003c955ad9e63f574f03583f0b21f459bd4d9add (diff)
downloademacs-config-9e0f0d435228078be4ada9013b048912bce80765.tar.gz
emacs-config-9e0f0d435228078be4ada9013b048912bce80765.zip
Setup refiling in org-mode
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r--oni-org/oni-org.el14
1 files changed, 13 insertions, 1 deletions
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 <tom@ryuslash.org>
;; 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/"))