src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2013-06-30 21:18:21 -0500
committerLuke Hoersten <[email protected]>2013-06-30 21:18:21 -0500
commit1f19cf60de031ceb64a5e142ee8f2eb0e67d8714 (patch)
tree166e59f371923c9b332d0bd0f892a6f1413a011b /init.el
parenteab4b21026cee768e1452f7c9a7a8d3721b5316f (diff)
Fixed a bug with the haskell-mode-hook
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/init.el b/init.el
index 7294d7a..f2340df 100644
--- a/init.el
+++ b/init.el
@@ -33,6 +33,7 @@
(global-font-lock-mode t) ; syntax highlighting
(global-set-key (kbd "C-c c") 'compile) ; compile
(global-set-key (kbd "C-c r") 'recompile) ; recompile
+(global-set-key (kbd "C-c a") 'align-regexp) ; align
(subword-mode t) ; move by camelCase words
@@ -129,7 +130,6 @@
;;; requires
(require 'c-init) ; c specific elisp
-(require 'align-with-spaces) ; use only spaces for alignment
(require 'move-line) ; move line up or down
(require 'uniquify) ; unique buffer names with dirs
(require 'auto-complete-config)
@@ -180,12 +180,11 @@
;;; coding-modes map
(mapc
(lambda (x)
- (add-hook
- x
- (lambda ()
- (linum-mode t)
- (rainbow-delimiters-mode t)
- (auto-complete-mode t)) t))
+ (add-hook x
+ (lambda ()
+ (linum-mode t)
+ (rainbow-delimiters-mode t)
+ (auto-complete-mode t))))
'(text-mode-hook
c-mode-common-hook
python-mode-hook
@@ -200,14 +199,14 @@
(add-hook
'haskell-mode-hook
(lambda ()
- (local-set-key (kbd "C-c i") 'haskell-navigate-imports) ; go to imports. prefix to return
- (flymake-haskell-multi-load t)
+ (flymake-haskell-multi-load)
(flymake-mode t)
(capitalized-words-mode t)
(turn-on-haskell-indent)
(turn-on-haskell-doc-mode)
(turn-on-haskell-decl-scan)
- (imenu-add-menubar-index t)
+ (imenu-add-menubar-index)
+ (local-set-key (kbd "C-c i") 'haskell-navigate-imports) ; go to imports. prefix to return
(setq
haskell-font-lock-haddock t
haskell-stylish-on-save t