Fix void-variable recentf-exclude

This commit is contained in:
Henrik Lissner 2017-06-05 16:56:13 +02:00
parent d4761a7c6d
commit 1906de46e8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 10 additions and 8 deletions

View file

@ -9,12 +9,13 @@
org-agenda-inhibit-startup t
org-agenda-skip-unavailable-files nil)
(after! recentf
;; Don't clobber recentf with agenda files
(defun +org-is-agenda-file (filename)
(cl-find (file-truename filename) org-agenda-files
:key #'file-truename
:test #'equal))
(add-to-list 'recentf-exclude #'+org-is-agenda-file)
(add-to-list 'recentf-exclude #'+org-is-agenda-file))
;;
(map! :map org-agenda-mode-map

View file

@ -13,9 +13,10 @@
(defun +org|init-attach ()
(setq org-attach-directory +org-attachment-dir)
;; Don't track attachments in recentf or projectile
(push (format "/%s.+$" (regexp-quote +org-attachment-dir)) recentf-exclude)
;; Don't track attachments in projectile or recentf
(push ".attach" projectile-globally-ignored-file-suffixes)
(after! recentf
(push (format "/%s.+$" (regexp-quote +org-attachment-dir)) recentf-exclude))
;; FIXME Use all-the-icons
;; (doom-fix-unicode '("FontAwesome" 13) ? ? ? ? ? ? ? ?)