Add automatic pairing to enh-ruby-mode
This commit is contained in:
parent
039e445452
commit
187e1d7174
2 changed files with 8 additions and 1 deletions
|
@ -1251,7 +1251,6 @@ from myaethon2.core.decorators import (
|
|||
(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)
|
||||
(add-hook 'enh-ruby-mode #'oni:electric-pair-local-mode)
|
||||
(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
|
||||
(add-hook 'haskell-mode-hook 'oni:haskell-mode-func)
|
||||
(add-hook 'java-mode-hook #'oni:electric-pair-local-mode)
|
||||
|
|
|
@ -1027,6 +1027,14 @@
|
|||
(add-hook 'haml-mode-hook #'oni:electric-pair-local-mode)
|
||||
#+END_SRC
|
||||
|
||||
* Ruby
|
||||
|
||||
- Automatically match parentheses and other delimiters.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'enh-ruby-mode-hook #'oni:electric-pair-local-mode)
|
||||
#+END_SRC
|
||||
|
||||
* Load custom file
|
||||
|
||||
I don't really use the Emacs customization interface much, but I
|
||||
|
|
Loading…
Reference in a new issue