Add robe customizations

This commit is contained in:
Tom Willemse 2015-09-23 14:36:13 +02:00
parent 85fe9b1ab3
commit c72168099b

View file

@ -631,6 +631,28 @@
(kill-buffer (current-buffer))) (kill-buffer (current-buffer)))
#+END_SRC #+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 * Some general-purpose functions and macros
A configuration as big as mine is bound to have some functions and A configuration as big as mine is bound to have some functions and