From 3d8d38501fe4e72d46def5812b617eff407de16b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 27 Oct 2014 16:49:53 +0100 Subject: [PATCH] Add automatic pairing to coffee-mode --- emacs/.emacs.d/init.el | 1 - emacs/.emacs.d/init.org | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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