summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-04-13 15:34:29 +0200
committerGravatar Tom Willemse2016-04-13 15:34:29 +0200
commit5d78874a92f48fa24ebddcc11eeda9f4ff2968c4 (patch)
tree8e25a3a01deb9717f7c5d3b9292b0ac8737ebab3
parent5ff58b1092be00828c73d783a706908627da23b0 (diff)
downloaddotfiles-5d78874a92f48fa24ebddcc11eeda9f4ff2968c4.tar.gz
dotfiles-5d78874a92f48fa24ebddcc11eeda9f4ff2968c4.zip
Store org-id-locations in a special place
-rw-r--r--emacs/.emacs.d/Makefile5
-rw-r--r--emacs/.emacs.d/init.org10
2 files changed, 14 insertions, 1 deletions
diff --git a/emacs/.emacs.d/Makefile b/emacs/.emacs.d/Makefile
index 4c731b1..441956e 100644
--- a/emacs/.emacs.d/Makefile
+++ b/emacs/.emacs.d/Makefile
@@ -18,7 +18,10 @@ all: init2.elc init.elc $(AUTOLOADS_FILE) $(SITE_LISPS) snippets
define tangle=
@echo -e "\e[35mOBT\e[0m $<"
@$(EMACS) $(EARGS) -l "ob-tangle" \
- -eval "(org-babel-tangle-file \"$<\")"
+ -eval "(progn \
+ (setq org-id-locations-file \
+ (concat user-emacs-directory \"data/org-id-locations\")) \
+ (org-babel-tangle-file \"$<\"))"
endef
init.el: init2.el
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index ba850f8..02fc070 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -709,6 +709,16 @@
Org mode offers /a lot/ of customization options. Most of mine are in
a separate file.
+ Store org id locations in my Emacs data directory.
+
+ #+BEGIN_SRC emacs-lisp
+ (use-package org-id
+ :defer t
+ :config
+ (setq org-id-locations-file
+ (concat user-emacs-directory "data/org-id-locations")))
+ #+END_SRC
+
*** Add org-mode appointments to the diary
Diary offers reminders, which can be useful when scheduling