diff options
Diffstat (limited to 'emacs')
-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 |