Fix setting known projects file for projectile
This commit is contained in:
parent
d435aab482
commit
781e1f8c10
1 changed files with 10 additions and 2 deletions
|
@ -628,6 +628,16 @@ To start off, first I need to enable lexical binding.
|
||||||
|
|
||||||
Projectile is, thus far, the best project module for Emacs.
|
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
|
#+BEGIN_SRC emacs-lisp
|
||||||
(require 'projectile)
|
(require 'projectile)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
@ -650,8 +660,6 @@ To start off, first I need to enable lexical binding.
|
||||||
Store projectile files in my data dir.
|
Store projectile files in my data dir.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq projectile-known-projects-file
|
|
||||||
(oni:data-location "projectile-bookmarks.eld"))
|
|
||||||
(setq projectile-cache-file
|
(setq projectile-cache-file
|
||||||
(oni:data-location "projectile.cache"))
|
(oni:data-location "projectile.cache"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue