General, minor reformatting across the board
And an offering of blood to our great lord Byte Compiler-sama.
This commit is contained in:
parent
3595ff62ee
commit
060ede0e2e
30 changed files with 125 additions and 112 deletions
|
@ -270,14 +270,16 @@ Some commands of interest:
|
|||
+ `+org-attach/file'
|
||||
+ `+org-attach/url'
|
||||
+ `+org-attach/sync'"
|
||||
(setq org-attach-directory (expand-file-name org-attach-directory org-directory))
|
||||
(setq org-attach-directory (doom-dir org-directory org-attach-directory))
|
||||
|
||||
;; A shorter link to attachments
|
||||
(add-to-list 'org-link-abbrev-alist (cons "attach" (abbreviate-file-name org-attach-directory)))
|
||||
(add-to-list 'org-link-abbrev-alist
|
||||
(cons "attach"
|
||||
(abbreviate-file-name org-attach-directory)))
|
||||
|
||||
(org-link-set-parameters
|
||||
"attach"
|
||||
:follow (lambda (link) (find-file (expand-file-name link org-attach-directory)))
|
||||
:follow (lambda (link) (find-file (doom-path org-attach-directory link)))
|
||||
:complete (lambda (&optional _arg)
|
||||
(+org--relpath (+org-link-read-file "attach" org-attach-directory)
|
||||
org-attach-directory))
|
||||
|
@ -571,8 +573,8 @@ between the two."
|
|||
"e" #'org-table-edit-formulas
|
||||
"=" #'org-table-eval-formulas)))
|
||||
|
||||
;; Fixes #1483: this messy hack fixes `org-agenda' or `evil-org-agenda'
|
||||
;; overriding SPC, breaking the localleader. TODO Improve me!
|
||||
;; HACK Fixes #1483: this messy hack fixes `org-agenda' or `evil-org-agenda'
|
||||
;; overriding SPC, breaking the localleader
|
||||
(define-minor-mode org-agenda-localleader-mode "TODO"
|
||||
:keymap (make-sparse-keymap))
|
||||
(add-hook 'org-agenda-mode-hook #'org-agenda-localleader-mode)
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
(def-package! org-download
|
||||
:commands (org-download-dnd org-download-dnd-base64)
|
||||
:init
|
||||
;; Add these manually so that org-download is lazy-loaded...
|
||||
(add-to-list 'dnd-protocol-alist '("^\\(https?\\|ftp\\|file\\|nfs\\):" . +org-dragndrop-download-dnd))
|
||||
(add-to-list 'dnd-protocol-alist '("^data:" . org-download-dnd-base64))
|
||||
|
||||
;; HACK We add these manually so that org-download is truly lazy-loaded
|
||||
(appendq!
|
||||
dnd-protocol-alist
|
||||
'("^\\(?:https?\\|ftp\\|file\\|nfs\\):"
|
||||
. +org-dragndrop-download-dnd)
|
||||
'("^data:" . org-download-dnd-base64))
|
||||
(advice-add #'org-download-enable :override #'ignore)
|
||||
:config
|
||||
(setq org-download-image-dir org-attach-directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue