lang/org: use org-attach instead of custom system

- Adds more keys under `<localleader> a`
- Reconfigures org-download to use org-attach system
- Make org-id-track-globally = t a global default now (not just for
  org-brain)
- Renamed +org-init-centralized-attachments-h to +org-init-attachments-h
- org-attach-store-link-p = t (stores a link to an attachment when it is
  attached)
- org-attach-use-inheritance = t (inherit attachment properties from
  parent nodes)
This commit is contained in:
Henrik Lissner 2019-12-29 16:31:25 -05:00
parent 54f42fef23
commit 14cf97e594
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 62 additions and 119 deletions

View file

@ -4,9 +4,7 @@
(use-package! org-brain
:defer t
:init
(setq org-id-track-globally t
org-id-locations-file (concat doom-etc-dir "org-id-locations")
org-brain-visualize-default-choices 'all
(setq org-brain-visualize-default-choices 'all
org-brain-title-max-length 24
org-brain-include-file-entries nil
org-brain-file-entries-use-title nil)

View file

@ -10,7 +10,8 @@
'("^data:" . org-download-dnd-base64))
(advice-add #'org-download-enable :override #'ignore)
:config
(setq org-download-image-dir org-attach-directory
(setq org-download-image-dir org-attach-id-dir
org-download-method 'attach
org-download-heading-lvl nil
org-download-timestamp "_%Y%m%d_%H%M%S"
org-download-screenshot-method