Use ruby-mode, update settings
This commit is contained in:
parent
7296051d56
commit
567b4c9cf4
3 changed files with 18 additions and 5 deletions
|
@ -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")
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue