lang/org: present full paths on org-refile

This makes refiling with multiple file targets far, far more palatable.
This commit is contained in:
Henrik Lissner 2019-10-28 00:49:10 -04:00
parent 53433d9c37
commit bb383d3ede
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -102,13 +102,22 @@ path too.")
'((?A . error) '((?A . error)
(?B . warning) (?B . warning)
(?C . success)) (?C . success))
org-refile-targets '((nil :maxlevel . 4))
org-startup-indented t org-startup-indented t
org-tags-column -80 org-tags-column -80
org-use-sub-superscripts '{} org-use-sub-superscripts '{}
;; Scale up LaTeX previews a bit (default is too small) ;; Scale up LaTeX previews a bit (default is too small)
org-format-latex-options (plist-put org-format-latex-options :scale 1.5)) org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
(setq org-refile-targets
'((nil :maxlevel . 3)
(org-agenda-files :maxlevel . 3))
;; Without this, completers like ivy/helm are only given the first level of
;; each outline candidates. i.e. all the candidates under the "Tasks" heading
;; are just "Tasks/". This is unhelpful. We want the full path to each refile
;; target! e.g. FILE/Task/heading/subheading
org-refile-use-outline-path 'file
org-outline-path-complete-in-steps nil)
(add-hook! 'doom-load-theme-hook (add-hook! 'doom-load-theme-hook
(defun +org-refresh-latex-background () (defun +org-refresh-latex-background ()
"Previews are usually rendered with light backgrounds, so ensure their "Previews are usually rendered with light backgrounds, so ensure their