summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-10-27 16:49:53 +0100
committerGravatar Tom Willemse2014-10-27 16:49:53 +0100
commit3d8d38501fe4e72d46def5812b617eff407de16b (patch)
treef796549f99af7784ba501eb40fa18fbedb9c91e7 /emacs
parent187e1d717487b640a34acdc6c983d7ea989c194b (diff)
downloaddotfiles-3d8d38501fe4e72d46def5812b617eff407de16b.tar.gz
dotfiles-3d8d38501fe4e72d46def5812b617eff407de16b.zip
Add automatic pairing to coffee-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el1
-rw-r--r--emacs/.emacs.d/init.org8
2 files changed, 8 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 3e91428..cd492fb 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -1247,7 +1247,6 @@ from myaethon2.core.decorators import (
(add-hook 'after-save-hook 'oni:after-save-func t)
(add-hook 'before-save-hook 'oni:before-save-func)
-(add-hook 'coffee-mode #'oni:electric-pair-local-mode)
(add-hook 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony)
(add-hook 'css-mode-hook #'rainbow-mode)
(add-hook 'diary-display-hook 'oni:diary-display-func)
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 6a726e2..eae1dda 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1035,6 +1035,14 @@
(add-hook 'enh-ruby-mode-hook #'oni:electric-pair-local-mode)
#+END_SRC
+* Coffee
+
+ - Autimatically match parentheses and other delimiters.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'coffee-mode-hook #'oni:electric-pair-local-mode)
+ #+END_SRC
+
* Load custom file
I don't really use the Emacs customization interface much, but I