mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
org: change how paths are defined
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
;;; module-org.el --- -*- no-byte-compile: t; -*-
|
||||
|
||||
(defconst org-directory (expand-file-name "~/Notes/"))
|
||||
|
||||
(define-minor-mode evil-org-mode
|
||||
"Evil-mode bindings for org-mode."
|
||||
:init-value nil
|
||||
@ -14,6 +12,8 @@
|
||||
(add-hook 'org-load-hook 'doom|org-hacks t)
|
||||
(add-hook 'org-mode-hook 'doom|org-hook)
|
||||
|
||||
(defvaralias 'org-directory 'doom-org-dir)
|
||||
|
||||
;;
|
||||
(defun doom|org-hook ()
|
||||
(evil-org-mode +1)
|
||||
@ -183,7 +183,7 @@
|
||||
(pushnew 'org-is-agenda-file recentf-exclude)
|
||||
|
||||
;; Don't track attachments
|
||||
(push (format "/%s.+$" (regexp-quote org-attach-directory)) recentf-exclude)
|
||||
(push (format "/%s.+$" (regexp-quote doom-org-attachment-dir)) recentf-exclude)
|
||||
(push ".attach" projectile-globally-ignored-file-suffixes)
|
||||
|
||||
;; Remove highlights on ESC
|
||||
|
Reference in New Issue
Block a user