summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-19 12:17:23 +0200
committerGravatar Tom Willemse2013-08-19 12:17:23 +0200
commit0132a338a18c10982a6da1077f18bb3068b61374 (patch)
tree547d3ffb3fd0948148aed17fd5d39ce6011213bb /.emacs.d/init.el
parent6c4d68c8106fc91a30e01dde1c5661b09e51363d (diff)
downloademacs-0132a338a18c10982a6da1077f18bb3068b61374.tar.gz
emacs-0132a338a18c10982a6da1077f18bb3068b61374.zip
Add some hy bindings
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 5944db2..34cd36f 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -69,6 +69,11 @@
"Set some keybindings for `eshell'."
(local-set-key (kbd "C-d") #'init-eshell-C-d))
+(defun init-set-keys-for-hy ()
+ "Set some keybindings for `hy-mode'."
+ (local-set-key (kbd "{") #'paredit-open-curly)
+ (local-set-key (kbd "}") #'paredit-close-curly))
+
(defun init-set-keys-for-tagedit ()
"Set some keybindings for `tagedit-mode'."
(local-set-key (kbd "M-k") #'tagedit-kill-attribute))
@@ -557,6 +562,7 @@ Also change directories to current working directory."
((html) turn-off-flyspell)
((html) turn-off-auto-fill)
((hy) paredit-mode)
+ ((hy) init-set-keys-for-hy)
((js2 python) smartparens-mode)
((markdown python) whitespace-mode)
((message org gnus-summary gnus-article gnus-group magit-log-edit Info