summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-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