summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-12-28 01:25:07 +0100
committerGravatar Tom Willemse2014-12-28 01:25:07 +0100
commitf227653717ecef3b49739c9a9d8a4138de49c889 (patch)
tree34e340ca31582af3d04a1c3df13bd5775749cc30 /emacs/.emacs.d/init.org
parent6a8d1ea37b000cf5612e998899be42fedcf5c34e (diff)
downloaddotfiles-f227653717ecef3b49739c9a9d8a4138de49c889.tar.gz
dotfiles-f227653717ecef3b49739c9a9d8a4138de49c889.zip
Enable electric indent in ruby buffers
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 0966f94..9ae5c36 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1152,6 +1152,12 @@
(setq ruby-align-chained-calls t)
#+END_SRC
+ - Automatically indent code.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'ruby-mode-hook #'electric-indent-local-mode)
+ #+END_SRC
+
** Coffee
- Automatically match parentheses and other delimiters.