src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2010-10-06 00:03:07 -0500
committerLuke Hoersten <[email protected]>2010-10-06 00:03:07 -0500
commit7f8810f96c186aea1be56253efb618a1ea5f6ddc (patch)
tree087642ca4ab8454d22f2c18136845ef066ba948d /init.el
parente9e816e732b6c3d211cf5da70faf7a633145f050 (diff)
Added more haskell mode settings
Diffstat (limited to 'init.el')
-rw-r--r--init.el20
1 files changed, 14 insertions, 6 deletions
diff --git a/init.el b/init.el
index 9979d57..49e3834 100644
--- a/init.el
+++ b/init.el
@@ -87,6 +87,7 @@
(global-set-key (kbd "C-c s") 'shell) ; start shell - acts like emacs buffer
(ansi-color-for-comint-mode-on) ; color in shell buffer
(setq-default
+ comint-prompt-read-only t ; don't type on prompt
comint-scroll-to-bottom-on-input t ; only type on prompt
comint-scroll-show-maximum-output t) ; place text at bottom
@@ -97,11 +98,6 @@
(require 'hoersten-c-style) ; load c specific lisp
(require 'vala-mode) ; vala programming language
-;; Xrefactory
-;; (setq load-path (cons "~/xref/emacs" load-path))
-;; (setq exec-path (cons "~/xref" exec-path))
-;; (load "xrefactory")
-
;; nav mode
(add-to-list 'load-path "~/.emacs.d/nav/")
(require 'nav)
@@ -109,7 +105,6 @@
;; unicode
(require 'pretty-mode)
(global-pretty-mode t)
-(setq haskell-font-lock-symbols 'unicode)
;; snippets
(add-to-list 'load-path "~/.emacs.d/yasnippet/")
@@ -126,6 +121,19 @@
python-indent 3
indent-tabs-mode t)))
+;; haskell mode
+(add-hook
+ 'haskell-mode-hook
+ (lambda ()
+ (capitalized-words-mode)
+ (setq
+ haskell-font-lock-symbols 'unicode
+ haskell-doc-mode t
+ imenu-add-menubar-index
+ inferior-haskell-wait-and-jump t
+ haskell-indent-mode t
+ haskell-indent-offset 3)))
+
;; zencoding html
(require 'zencoding-mode)
(add-hook 'sgml-mode-hook 'zencoding-mode) ; Auto-start on any markup modes