about summary refs log tree commit diff
path: root/init/modes.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2014-12-29T20·51+0100
committerVincent Ambo <vincent@kivra.com>2014-12-29T20·51+0100
commitfb9a837c67a3f7e15c89daad168f2982aa3be8cc (patch)
tree830643ffade4477057c93b8920bd4b7d3a28f12b /init/modes.el
parent677eba3e60b5f1b1473524a83e4d73dae1cba99b (diff)
Split out Haskell and Clojure config
Diffstat (limited to 'init/modes.el')
-rw-r--r--init/modes.el39
1 files changed, 7 insertions, 32 deletions
diff --git a/init/modes.el b/init/modes.el
index a28ece3e57f0..c1d5c37253cd 100644
--- a/init/modes.el
+++ b/init/modes.el
@@ -1,4 +1,5 @@
-(mapc 'require '(projectile ac-cider-compliment cider))
+(require 'projectile)
+
 ;; Initializes modes I use.
 
 (add-hook 'prog-mode-hook 'esk-add-watchwords)
@@ -18,34 +19,12 @@
 (add-hook 'auto-complete-mode-hook
           'set-auto-complete-as-completion-at-point-function)
 
-;; Configure CIDER (Clojure REPL) and clojure-mode
-
-(defun cider-mode-setup ()
-  "Activates paredit, rainbow delimiters and ac-nrepl"
-  (ac-cider-compliment-setup)
-  (ac-flyspell-workaround)
-  (paredit-mode))
-
-(eval-after-load "auto-complete"
-  '(add-to-list 'ac-modes cider-mode))
-
-(add-hook 'cider-repl-mode-hook 'cider-mode-setup)
-(add-hook 'cider-interaction-mode-hook 'cider-mode-setup)
-(eval-after-load "auto-complete"
-  '(add-to-list 'ac-modes 'cider-repl-mode))
+;; Configure Erlang mode
 
-;; Paredit in clojure
-(add-hook 'clojure-mode-hook 'paredit-mode)
-
-;; eldoc in clojure
-(add-hook 'cider-interaction-mode-hook
-          'cider-turn-on-eldoc-mode)
-
-;; Don't annoy me
-(setq cider-hide-special-buffers t)
-(setq cider-popup-stacktraces nil)
-(setq cider-repl-pop-to-buffer-on-connect nil)
-(setq cider-repl-popup-stacktraces t)
+;; Don't indent after '>' while I'm writing
+(add-hook 'erlang-mode-hook
+          '(lambda ()
+             (local-set-key ">" 'self-insert-command)))
 
 ;; Enable projectile for all things programming
 (add-hook 'prog-mode-hook 'projectile-mode)
@@ -56,10 +35,6 @@
 ;; Enable Paredit in Emacs Lisp mode
 (add-hook 'emacs-lisp-mode-hook 'paredit-mode)
 
-;; Configure Haskell mode
-;; Indentation ...
-(add-hook 'haskell-mode-hook 'hi2-mode)
-
 ;; Always highlight matching brackets
 (show-paren-mode 1)