mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -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/+attach.el -*- lexical-binding: t; -*-
|
||||
|
||||
(add-hook 'org-load-hook #'+org-attach|init)
|
||||
|
||||
;; I believe Org's native attachment system is over-complicated and litters
|
||||
;; files with metadata I don't want. So I wrote my own, which:
|
||||
;;
|
||||
@@ -62,7 +60,7 @@
|
||||
:filter-return #'+org-attach*download-fullname))
|
||||
|
||||
;;
|
||||
(defun +org-attach|init ()
|
||||
(after! org
|
||||
(setq org-attach-directory +org-attach-dir)
|
||||
|
||||
(push (car (last (split-string +org-attach-dir "/" t)))
|
||||
|
Reference in New Issue
Block a user