From 8c9fc57092dda0d48c136f6c451c7dbc4a25998d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 7 Oct 2016 17:20:36 +0200 Subject: Add projectile configuration --- emacs/.emacs.d/init.org | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 -- cgit v1.2.3-54-g00ecf