From 111e229676e5aaf2dceecc7002a9a7020e3d5ad4 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 15 Feb 2013 00:32:41 +0100 Subject: [PATCH] emacs: Use modern indentation for Haskell code --- .emacs.d/init.el | 1 + .emacs.d/site-lisp/oni.el | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4f109f6..4921dee 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -184,6 +184,7 @@ (add-hook 'erc-mode-hook 'oni:erc-mode-func) (add-hook 'go-mode-hook 'oni:go-mode-func) (add-hook 'gtags-mode-hook 'oni:gtags-mode-func) +(add-hook 'haskell-mode-hook 'oni:haskell-mode-func) (add-hook 'html-mode-hook 'oni:html-mode-func) (add-hook 'jabber-alert-message-hooks 'oni:jabber-alert-message-func) (add-hook 'jabber-chat-mode-hook 'oni:jabber-chat-mode-func) diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index 09a9d79..a2dbea0 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -120,6 +120,10 @@ DOT are intentionally being skipped." (local-set-key "\M-," 'gtags-find-tag) (local-set-key "\M-." 'gtags-find-rtag)) +(defun oni:haskell-mode-func () + "Function for `haskell-mode-hook'." + (turn-on-haskell-indentation)) + (defun oni:html-mode-func () "Function for `html-mode-hook'." (yas-minor-mode)