diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-20T10·13+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-22T21·13+0000 |
commit | ddd5d3a7a0653a1c15bd651dbb36fe22adfd0ff5 (patch) | |
tree | 0538aeaf7e0386a305b347ddae6b3fb8a690cdef /configs/shared/.emacs.d | |
parent | 8a657fff7fc15a7875e602d426e76ac7e0ff3157 (diff) |
Drop support for ORG_DIRECTORY in envrc
When Emacs starts it's called from xsessionrc.shared, which is called outside of direnv's .envrc scope. Because of this variables defined therein, like ORG_DIRECTORY, are undefined and prevent Emacs from initializing. I'm hard-coding the `org-directory` variable for now and removing references to `(getenv "ORG_DIRECTORY")`.
Diffstat (limited to 'configs/shared/.emacs.d')
-rw-r--r-- | configs/shared/.emacs.d/wpc/bookmark.el | 1 | ||||
-rw-r--r-- | configs/shared/.emacs.d/wpc/packages/wpc-org.el | 21 |
2 files changed, 9 insertions, 13 deletions
diff --git a/configs/shared/.emacs.d/wpc/bookmark.el b/configs/shared/.emacs.d/wpc/bookmark.el index 7f912f1b1734..3a49b7cfd896 100644 --- a/configs/shared/.emacs.d/wpc/bookmark.el +++ b/configs/shared/.emacs.d/wpc/bookmark.el @@ -47,7 +47,6 @@ Otherwise, open with `counsel-find-file'." (defconst bookmark/whitelist (list - ;; TODO: Consider using (getenv "ORG_DIRECTORY") (make-bookmark :label "org" :path "~/Dropbox/org" :kbd "o") diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-org.el b/configs/shared/.emacs.d/wpc/packages/wpc-org.el index 7dfe94520261..3263fb50380c 100644 --- a/configs/shared/.emacs.d/wpc/packages/wpc-org.el +++ b/configs/shared/.emacs.d/wpc/packages/wpc-org.el @@ -10,33 +10,30 @@ ;; Dependencies ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(require 'prelude) (require 'f) -(require 'maybe) - -(prelude/assert (and (maybe/some? (getenv "ORG_DIRECTORY")) - (f-exists? (getenv "ORG_DIRECTORY")))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(setq org-directory "~/Dropbox/org") + ;; TODO: figure out how to nest this in (use-package org ...) (setq org-capture-templates `(("w" "work" entry (file+headline - ,(f-join (getenv "ORG_DIRECTORY") "work.org") + ,(f-join org-directory "work.org") "Tasks") "* TODO %?") ("p" "personal" entry (file+headline - ,(f-join (getenv "ORG_DIRECTORY") "personal.org") + ,(f-join org-directory "personal.org") "Tasks") "* TODO %? ") ("i" "ideas" entry (file+headline - ,(f-join (getenv "ORG_DIRECTORY") "ideas.org") + ,(f-join org-directory "ideas.org") "Tasks") "* %? ") ("s" "shopping list" entry (file+headline - ,(f-join (getenv "ORG_DIRECTORY") "shopping.org") + ,(f-join org-directory "shopping.org") "Items") "* TODO %? "))) @@ -55,9 +52,9 @@ (setq org-startup-folded nil) (setq org-todo-keywords '((sequence "TODO" "BLOCKED" "DONE"))) - (setq org-default-notes-file (f-join (getenv "ORG_DIRECTORY") "notes.org")) - (setq org-agenda-files (list (f-join (getenv "ORG_DIRECTORY") "work.org") - (f-join (getenv "ORG_DIRECTORY") "personal.org"))) + (setq org-default-notes-file (f-join org-directory "notes.org")) + (setq org-agenda-files (list (f-join org-directory "work.org") + (f-join org-directory "personal.org"))) ;; TODO: troubleshoot why `wpc/kbds-minor-mode', `wpc/ensure-kbds' aren't ;; enough to override the following KBDs. See this discussion for more context ;; on where the idea came from: |