Move org-attach config to +org-init-attachments-h
This commit is contained in:
parent
ecbd4b7567
commit
8b8e7537b7
1 changed files with 11 additions and 12 deletions
|
@ -366,9 +366,18 @@ relative to `org-directory', unless it is an absolute path."
|
||||||
(setq org-attach-store-link-p t ; store link after attaching files
|
(setq org-attach-store-link-p t ; store link after attaching files
|
||||||
org-attach-use-inheritance t) ; inherit properties from parent nodes
|
org-attach-use-inheritance t) ; inherit properties from parent nodes
|
||||||
|
|
||||||
;; Centralized attachments directory
|
;; Autoload all these commands that org-attach doesn't autoload itself
|
||||||
(after! org-attach
|
(use-package! org-attach
|
||||||
|
:commands (org-attach-new
|
||||||
|
org-attach-open
|
||||||
|
org-attach-open-in-emacs
|
||||||
|
org-attach-reveal-in-emacs
|
||||||
|
org-attach-url
|
||||||
|
org-attach-set-directory
|
||||||
|
org-attach-sync)
|
||||||
|
:config
|
||||||
(unless org-attach-id-dir
|
(unless org-attach-id-dir
|
||||||
|
;; Centralized attachments directory by default
|
||||||
(setq org-attach-id-dir (expand-file-name ".attach/" org-directory)))
|
(setq org-attach-id-dir (expand-file-name ".attach/" org-directory)))
|
||||||
(after! projectile
|
(after! projectile
|
||||||
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir)))
|
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir)))
|
||||||
|
@ -1034,16 +1043,6 @@ compelling reason, so..."
|
||||||
:config
|
:config
|
||||||
(setq org-archive-subtree-save-file-p t) ; save target buffer after archiving
|
(setq org-archive-subtree-save-file-p t) ; save target buffer after archiving
|
||||||
|
|
||||||
;; Autoload all these commands that org-attach doesn't autoload itself
|
|
||||||
(use-package! org-attach
|
|
||||||
:commands (org-attach-new
|
|
||||||
org-attach-open
|
|
||||||
org-attach-open-in-emacs
|
|
||||||
org-attach-reveal-in-emacs
|
|
||||||
org-attach-url
|
|
||||||
org-attach-set-directory
|
|
||||||
org-attach-sync))
|
|
||||||
|
|
||||||
;; Global ID state means we can have ID links anywhere. This is required for
|
;; Global ID state means we can have ID links anywhere. This is required for
|
||||||
;; `org-brain', however.
|
;; `org-brain', however.
|
||||||
(setq org-id-track-globally t
|
(setq org-id-track-globally t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue