aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-11 12:49:45 +0200
committerGravatar Tom Willemse2016-10-11 12:49:45 +0200
commit781e1f8c10cdb6249b36e930409e2258dbee4a4a (patch)
tree29719d08868edf97fb6d1ff222217a675ed779f7
parentd435aab482a7bff61922997ee53026b0a3fb3c1b (diff)
downloadnew-dotfiles-781e1f8c10cdb6249b36e930409e2258dbee4a4a.tar.gz
new-dotfiles-781e1f8c10cdb6249b36e930409e2258dbee4a4a.zip
Fix setting known projects file for projectile
-rw-r--r--emacs/.emacs.d/init.org12
1 files changed, 10 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 82dd919..ef12a1f 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -628,6 +628,16 @@ To start off, first I need to enable lexical binding.
Projectile is, thus far, the best project module for Emacs.
+ Set the known projects file before loading projectile because
+ projectile loads the known projects as it's loading, not after.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq projectile-known-projects-file
+ (oni:data-location "projectile-bookmarks.eld"))
+ #+END_SRC
+
+ Since I'm just going to use it anyway, require it immediately.
+
#+BEGIN_SRC emacs-lisp
(require 'projectile)
#+END_SRC
@@ -650,8 +660,6 @@ To start off, first I need to enable lexical binding.
Store projectile files in my data dir.
#+BEGIN_SRC emacs-lisp
- (setq projectile-known-projects-file
- (oni:data-location "projectile-bookmarks.eld"))
(setq projectile-cache-file
(oni:data-location "projectile.cache"))
#+END_SRC