about summary refs log tree commit diff
path: root/emacs.d/init-modes.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-07T23·31+0200
committerVincent Ambo <vincent@spotify.com>2013-07-07T23·31+0200
commit50ec87400c82e921dd9404672b7e64828abaeca1 (patch)
tree15930360ad94c618275ae064283c93d3eb291227 /emacs.d/init-modes.el
parent0d133eceb395d44b7a234b5f455d9d92bba43f4e (diff)
emacs: Moved some configurations around and fixed init-modes.el
Diffstat (limited to 'emacs.d/init-modes.el')
-rw-r--r--emacs.d/init-modes.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/emacs.d/init-modes.el b/emacs.d/init-modes.el
index d7415fda06aa..6e523c387734 100644
--- a/emacs.d/init-modes.el
+++ b/emacs.d/init-modes.el
@@ -1,3 +1,4 @@
+(mapc 'require '(projectile))
 ;; Initializes modes I use.
 
 (add-hook 'prog-mode-hook 'esk-pretty-lambdas)
@@ -33,6 +34,11 @@
 (setq nrepl-hide-special-buffers t)
 (setq nrepl-popup-stacktraces nil)
 
-;; Paredit in nrepl
-(add-hook 'nrepl-mode-hook 'paredit-mode)
-(add-hook 'nrepl-mode-hook 'rainbow-delimiters-mode)
+;; Enable projectile for all things programming
+(add-hook 'prog-mode-hook 'projectile-on)
+
+;; Enable rainbow-delimiters for all things programming
+(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
+
+;; Enable paredit in all programming buffers
+(add-hook 'prog-mode-hook 'paredit-mode)