Fix void-variable recentf-exclude
This commit is contained in:
parent
d4761a7c6d
commit
1906de46e8
2 changed files with 10 additions and 8 deletions
|
@ -9,12 +9,13 @@
|
||||||
org-agenda-inhibit-startup t
|
org-agenda-inhibit-startup t
|
||||||
org-agenda-skip-unavailable-files nil)
|
org-agenda-skip-unavailable-files nil)
|
||||||
|
|
||||||
;; Don't clobber recentf with agenda files
|
(after! recentf
|
||||||
(defun +org-is-agenda-file (filename)
|
;; Don't clobber recentf with agenda files
|
||||||
(cl-find (file-truename filename) org-agenda-files
|
(defun +org-is-agenda-file (filename)
|
||||||
:key #'file-truename
|
(cl-find (file-truename filename) org-agenda-files
|
||||||
:test #'equal))
|
:key #'file-truename
|
||||||
(add-to-list 'recentf-exclude #'+org-is-agenda-file)
|
:test #'equal))
|
||||||
|
(add-to-list 'recentf-exclude #'+org-is-agenda-file))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(map! :map org-agenda-mode-map
|
(map! :map org-agenda-mode-map
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
(defun +org|init-attach ()
|
(defun +org|init-attach ()
|
||||||
(setq org-attach-directory +org-attachment-dir)
|
(setq org-attach-directory +org-attachment-dir)
|
||||||
|
|
||||||
;; Don't track attachments in recentf or projectile
|
;; Don't track attachments in projectile or recentf
|
||||||
(push (format "/%s.+$" (regexp-quote +org-attachment-dir)) recentf-exclude)
|
|
||||||
(push ".attach" projectile-globally-ignored-file-suffixes)
|
(push ".attach" projectile-globally-ignored-file-suffixes)
|
||||||
|
(after! recentf
|
||||||
|
(push (format "/%s.+$" (regexp-quote +org-attachment-dir)) recentf-exclude))
|
||||||
|
|
||||||
;; FIXME Use all-the-icons
|
;; FIXME Use all-the-icons
|
||||||
;; (doom-fix-unicode '("FontAwesome" 13) ? ? ? ? ? ? ? ?)
|
;; (doom-fix-unicode '("FontAwesome" 13) ? ? ? ? ? ? ? ?)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue