Mark +org-dir obsolete (use org-directory instead)
I prefer not to invent new variables when they aren't strictly necessary. org-directory is one such variable (although the other path variables are still necessary).
This commit is contained in:
parent
db8b4091dd
commit
6693db48af
8 changed files with 30 additions and 33 deletions
|
@ -1,7 +1,9 @@
|
|||
;;; lang/org/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +org-dir (expand-file-name "~/org/")
|
||||
"The directory where org files are kept.")
|
||||
;; FIXME deprecated
|
||||
(define-obsolete-variable-alias '+org-dir 'org-directory "2.1.0")
|
||||
|
||||
(defvar org-directory "~/org/")
|
||||
|
||||
;; Sub-modules
|
||||
(if (featurep! +attach) (load! "+attach"))
|
||||
|
@ -61,9 +63,6 @@
|
|||
+org|unfold-to-2nd-level-or-point
|
||||
+org|show-paren-mode-compatibility))
|
||||
|
||||
(after! org
|
||||
(defvaralias 'org-directory '+org-dir))
|
||||
|
||||
|
||||
;;
|
||||
;; `org-mode' hooks
|
||||
|
@ -240,7 +239,7 @@ unfold to point on startup."
|
|||
'org-link
|
||||
'error)))))
|
||||
|
||||
(def-org-file-link! "org" +org-dir)
|
||||
(def-org-file-link! "org" org-directory)
|
||||
(def-org-file-link! "doom" doom-emacs-dir)
|
||||
(def-org-file-link! "doom-docs" doom-docs-dir)
|
||||
(def-org-file-link! "doom-modules" doom-modules-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue