Add automatic pairing to coffee-mode

This commit is contained in:
Tom Willemse 2014-10-27 16:49:53 +01:00
parent 187e1d7174
commit 3d8d38501f
2 changed files with 8 additions and 1 deletions

View file

@ -1247,7 +1247,6 @@ from myaethon2.core.decorators import (
(add-hook 'after-save-hook 'oni:after-save-func t) (add-hook 'after-save-hook 'oni:after-save-func t)
(add-hook 'before-save-hook 'oni:before-save-func) (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 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony)
(add-hook 'css-mode-hook #'rainbow-mode) (add-hook 'css-mode-hook #'rainbow-mode)
(add-hook 'diary-display-hook 'oni:diary-display-func) (add-hook 'diary-display-hook 'oni:diary-display-func)

View file

@ -1035,6 +1035,14 @@
(add-hook 'enh-ruby-mode-hook #'oni:electric-pair-local-mode) (add-hook 'enh-ruby-mode-hook #'oni:electric-pair-local-mode)
#+END_SRC #+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 * Load custom file
I don't really use the Emacs customization interface much, but I I don't really use the Emacs customization interface much, but I