aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbard <[email protected]>2023-09-24 18:24:54 -0400
committerbard <[email protected]>2023-09-24 18:24:54 -0400
commitfd6d03edf73e36343b6f30c39f4e2b8115e4fd64 (patch)
tree13bdffdb844643a50183248aa843ca2ab7c1a8c8
parent15ef46b2ae2bda54fde356a84259a9c390c84ab5 (diff)
hlint keybind and custom hook
-rw-r--r--haskell.el4
-rw-r--r--init.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/haskell.el b/haskell.el
new file mode 100644
index 0000000..45a5c71
--- /dev/null
+++ b/haskell.el
@@ -0,0 +1,4 @@
+(require 'hs-lint)
+(defun bard/haskell-mode-hook ()
+ (local-set-key (kbd "C-c h l") 'hs-lint))
+(add-hook 'haskell-mode-hook 'bard/haskell-mode-hook)
diff --git a/init.el b/init.el
index db95f3e..9eacb8e 100644
--- a/init.el
+++ b/init.el
@@ -4,7 +4,8 @@
;; Loading all other files
(setq my-config-files '("~/.emacs.d/packages.el"
- "~/.emacs.d/org.el"))
+ "~/.emacs.d/org.el"
+ "~/.emacs.d/haskell.el"))
(dolist (config-file my-config-files)
(load config-file))