Add projectile configuration
This commit is contained in:
parent
0857027a90
commit
8c9fc57092
1 changed files with 33 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue