summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-09-23 14:36:13 +0200
committerGravatar Tom Willemse2015-09-23 14:36:13 +0200
commitc72168099b704701335e50ecfa02742d0ad93369 (patch)
treeca2f46659d59dbd17ca86d1506daa0ced29c88ae /emacs/.emacs.d/init.org
parent85fe9b1ab390c86e86be24173844b5e6853f60da (diff)
downloaddotfiles-c72168099b704701335e50ecfa02742d0ad93369.tar.gz
dotfiles-c72168099b704701335e50ecfa02742d0ad93369.zip
Add robe customizations
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 7ac205c..8dbc0e2 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -631,6 +631,28 @@
(kill-buffer (current-buffer)))
#+END_SRC
+* Minor mode customization
+
+ Many minor modes also offer a bit of customization possibilities.
+
+** Robe
+
+ #+BEGIN_SRC emacs-lisp :tangle no
+ (depends-on "robe")
+ #+END_SRC
+
+ Robe is a Ruby completion and documentation lookup library.
+
+*** Adding completions to autocomplete
+
+ To add Robe completions to autocomplete whenever robe is started,
+ I use the =robe-mode-hook= to enable this so that it doesn't try to
+ get any completions when robe isn't running.
+
+ #+BEGIN_SRC emacs-lisp
+ (add-hook 'robe-mode-hook #'ac-robe-setup)
+ #+END_SRC
+
* Some general-purpose functions and macros
A configuration as big as mine is bound to have some functions and