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:
Henrik Lissner 2018-06-15 00:45:26 +02:00
parent db8b4091dd
commit 6693db48af
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 30 additions and 33 deletions

View file

@ -13,7 +13,7 @@
(elfeed-db-compact)
(doom-kill-matching-buffers "^\\*elfeed")
(dolist (file +rss-elfeed-files)
(when-let* ((buf (get-file-buffer (expand-file-name file +org-dir))))
(when-let* ((buf (get-file-buffer (expand-file-name file org-directory))))
(kill-buffer buf))))
;;;###autoload

View file

@ -5,8 +5,8 @@
;; don't care for the UI you can invoke elfeed directly with `elfeed'.
(defvar +rss-elfeed-files (list "elfeed.org")
"Where to look for elfeed.org files, relative to `+org-dir'. Can be absolute
paths.")
"Where to look for elfeed.org files, relative to `org-directory'. Can be
absolute paths.")
(defvar +rss-split-direction 'below
"What direction to pop up the entry buffer in elfeed.")
@ -65,6 +65,6 @@ paths.")
:after elfeed
:config
(setq rmh-elfeed-org-files
(let ((default-directory +org-dir))
(let ((default-directory org-directory))
(mapcar #'expand-file-name +rss-elfeed-files)))
(elfeed-org))