summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-10-31 15:16:38 +0100
committerGravatar Tom Willemse2014-10-31 15:19:04 +0100
commit567b4c9cf4906a49a90a421d7957935552ead43e (patch)
treeb0a99af099c9cd375b3ffa68a14aae51df093bac /emacs/.emacs.d/init.org
parent7296051d56252128709f0f4423e113200c611965 (diff)
downloaddotfiles-567b4c9cf4906a49a90a421d7957935552ead43e.tar.gz
dotfiles-567b4c9cf4906a49a90a421d7957935552ead43e.zip
Use ruby-mode, update settings
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org19
1 files changed, 18 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index cd9e358..5e660c8 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1064,9 +1064,26 @@
- Automatically match parentheses and other delimiters.
#+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
+ - 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
- Autimatically match parentheses and other delimiters.