aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules/bard-lang.el
diff options
context:
space:
mode:
Diffstat (limited to 'bard-emacs-modules/bard-lang.el')
-rw-r--r--bard-emacs-modules/bard-lang.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/bard-emacs-modules/bard-lang.el b/bard-emacs-modules/bard-lang.el
new file mode 100644
index 0000000..2400ea5
--- /dev/null
+++ b/bard-emacs-modules/bard-lang.el
@@ -0,0 +1,9 @@
+(defun bard/common-modes-hook ()
+ "Commonly used modes, bundled in one hook"
+ (display-line-numbers-mode 1)
+ (electric-pair-mode 1)
+ (hl-todo-mode 1))
+
+(add-hook 'emacs-lisp-mode-hook 'bard/common-modes-hook)
+(add-hook 'haskell-mode-hook 'bard/common-modes-hook)
+(add-hook 'clojure-mode-hook 'bard/common-modes-hook)