Use ruby-mode, update settings

This commit is contained in:
Tom Willemse 2014-10-31 15:16:38 +01:00
parent 7296051d56
commit 567b4c9cf4
3 changed files with 18 additions and 5 deletions

View file

@ -27,7 +27,6 @@
(depends-on "e2wm") (depends-on "e2wm")
(depends-on "elnode") (depends-on "elnode")
(depends-on "emms") (depends-on "emms")
(depends-on "enh-ruby-mode")
(depends-on "eshell-fringe-status") (depends-on "eshell-fringe-status")
(depends-on "esxml") (depends-on "esxml")
(depends-on "evil") (depends-on "evil")

View file

@ -1360,9 +1360,6 @@ from myaethon2.core.decorators import (
#'oni:python-mode-func #'oni:set-python-imenu-function #'oni:python-mode-func #'oni:set-python-imenu-function
#'jedi:setup #'subword-mode #'oni:electric-pair-local-mode) #'jedi:setup #'subword-mode #'oni:electric-pair-local-mode)
(oni:add-hooks 'ruby-mode-hook
#'flycheck-mode #'oni:electric-pair-local-mode)
(oni:add-hooks 'slime-repl-mode-hook (oni:add-hooks 'slime-repl-mode-hook
#'paredit-mode #'set-up-slime-ac #'hl-sexp-mode) #'paredit-mode #'set-up-slime-ac #'hl-sexp-mode)

View file

@ -1064,9 +1064,26 @@
- Automatically match parentheses and other delimiters. - Automatically match parentheses and other delimiters.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-hook 'enh-ruby-mode-hook #'oni:electric-pair-local-mode) (add-hook 'ruby-mode-hook #'oni:electric-pair-local-mode)
#+END_SRC #+END_SRC
- Enable flycheck
#+BEGIN_SRC emacs-lisp
(declare-function flycheck-mode "flycheck")
(add-hook 'ruby-mode-hook #'flycheck-mode)
#+END_SRC
- Align chained method calls
#+BEGIN_SRC emacs-lisp
(defvar ruby-align-chained-calls)
(setq ruby-align-chained-calls t)
#+END_SRC
** Coffee ** Coffee
- Autimatically match parentheses and other delimiters. - Autimatically match parentheses and other delimiters.