diff options
author | Tom Willemse | 2016-10-07 17:20:36 +0200 |
---|---|---|
committer | Tom Willemse | 2016-10-07 17:20:36 +0200 |
commit | 8c9fc57092dda0d48c136f6c451c7dbc4a25998d (patch) | |
tree | 7fb47ef68659407771c172f7f77b80d8e4aa4308 | |
parent | 0857027a907c033fc6cdd5b3b14931f35c183c4d (diff) | |
download | new-dotfiles-8c9fc57092dda0d48c136f6c451c7dbc4a25998d.tar.gz new-dotfiles-8c9fc57092dda0d48c136f6c451c7dbc4a25998d.zip |
Add projectile configuration
-rw-r--r-- | emacs/.emacs.d/init.org | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 4450179..e0361d0 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -651,6 +651,39 @@ To start off, first I need to enable lexical binding. 'face '(:family "Font Awesome" :height 0.75))) #+END_SRC +** Projectile + + Projectile is, thus far, the best project module for Emacs. + + #+BEGIN_SRC emacs-lisp + (ensure-library projectile) + (require 'projectile) + #+END_SRC + + I don't like that projectile tries to take up so much space in my + mode-line, so I try to make it a little shorter. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'projectile + (setq projectile-mode-line + '(:eval + (if (file-remote-p default-directory) + " P" + (format " P[%s]" (projectile-project-name)))))) + #+END_SRC + + Enable it globally so I can always switch to/from projects. + + #+BEGIN_SRC emacs-lisp + (projectile-mode) + #+END_SRC + + Use Ivy for projectile completions. + + #+BEGIN_SRC emacs-lisp + (setq projectile-completion-system 'ivy) + #+END_SRC + * Major modes ** Emacs lisp mode |