src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2013-06-25 11:12:54 -0500
committerLuke Hoersten <[email protected]>2013-06-25 11:12:54 -0500
commit752a6b55b5acf3a6dc9aa2a173b6c7816b67869d (patch)
tree86aac83c98a7f7268941b94b22abca7a14246ff6 /init.el
parent73b4be610f2be63e44a6fd75fc9a9891a560569f (diff)
Tons more cleanups after emacs24 update.
Diffstat (limited to 'init.el')
-rw-r--r--init.el23
1 files changed, 18 insertions, 5 deletions
diff --git a/init.el b/init.el
index 7bf099f..6f2a921 100644
--- a/init.el
+++ b/init.el
@@ -7,7 +7,6 @@
(setq-default
ediff-split-window-function
'split-window-horizontally ; diff horizontally
- x-select-enable-clipboard t ; paste from X buffer
inhibit-splash-screen t ; disable splash screen
truncate-lines t ; truncate, not wrap, lines
indent-tabs-mode nil ; only uses spaces for indentation
@@ -136,7 +135,6 @@
;;; custom inits
(require 'c-init) ; c specific elisp
(require 'align-with-spaces) ; use only spaces for alignment
-(require 'pastebin-region) ; send selected text to pastebin
(require 'move-line) ; move line up or down
(require 'uniquify) ; unique buffer names with dirs
@@ -177,7 +175,7 @@
;;; js2-mode
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
-(add-hook 'js-mode-hook 'js2-minor-mode)
+(setq-default ac-js2-evaluate-calls t)
;;; zencoding-mode - html
(add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes
@@ -199,9 +197,12 @@
(add-hook
'haskell-mode-hook
(lambda ()
- ;; (ghc-init)
- (turn-on-haskell-indent)
+ ;; (ghc-init) ;; this breaks stuff
+ (local-set-key (kbd "C-c i") 'haskell-navigate-imports) ; go to imports. prefix to return
+ (flymake-haskell-multi-load)
+ (flymake-mode)
(capitalized-words-mode)
+ (turn-on-haskell-indent)
(turn-on-haskell-doc-mode)
(turn-on-haskell-decl-scan)
(imenu-add-menubar-index)
@@ -213,3 +214,15 @@
haskell-indent-offset 4
whitespace-line-column 78)
))
+
+;;; ghci-mode
+(add-hook 'inferior-haskell-mode-hook 'turn-on-ghci-completion)
+
+;;; flymake-mode
+(add-hook
+ 'flymake-mode-hook
+ (lambda ()
+ (local-set-key (kbd "C-1") 'flymake-display-err-menu-for-current-line)
+ (local-set-key (kbd "C-.") 'flymake-goto-next-error)
+ (local-set-key (kbd "C-,") 'flymake-goto-prev-error)
+ ))