mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-23 14:03:44 -05:00
lang/org: refactor org init process
after! org is more reliable than org-load-hook.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
;;; lang/org/+capture.el -*- lexical-binding: t; -*-
|
||||
|
||||
(add-hook 'org-load-hook #'+org-capture|init)
|
||||
|
||||
;; Sets up two `org-capture' workflows that I like:
|
||||
;;
|
||||
;; 1. The traditional way: invoking `org-capture' directly (or through a
|
||||
@@ -24,7 +22,7 @@
|
||||
(file+headline org-default-notes-file "Inbox")
|
||||
"* %u %?\n%i" :prepend t :kill-buffer t)))
|
||||
|
||||
(defun +org-capture|init ()
|
||||
(after! org
|
||||
(defvaralias 'org-default-notes-file '+org-default-notes-file)
|
||||
(setq org-default-notes-file (expand-file-name +org-default-notes-file +org-dir))
|
||||
|
||||
|
Reference in New Issue
Block a user