From 781e1f8c10cdb6249b36e930409e2258dbee4a4a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 11 Oct 2016 12:49:45 +0200 Subject: Fix setting known projects file for projectile --- emacs/.emacs.d/init.org | 12 ++++++++++-- 1 file 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 -- cgit v1.2.3-54-g00ecf