bbatsov/emacs-prelude — Issue #49: hook for auto-complete
Author: michaelsbradleyjr
Created: 2011-12-30 22:35:40+00:00
State: open

First of all, thanks for emacs-prelude! I'm about 10 days into my transition to emacs from MacVim, and prelude has made that process smoother and more enjoyable. Looking at prelude's source has been helpful too -- the modules have provided me with good references for figuring out how to customize my environment further.

I've got a bit of a puzzle and was wondering if you could help me figure out if I'm bumping up against an incompatibility with prelude or something else.

I'm trying to add a hook to `coffee-mode` so that auto-complete (which I've cloned into my `~/.emacs.d/personal` directory) is always activated when I'm editing CoffeeScript:
https://github.com/michaelsbradleyjr/emacs.personal/blob/master/coffee-auto-complete.el

It "half works", i.e. when I open a `.coffee` file, I see `AC` in the mode line (which I don't see if my `coffee-auto-complete.el` is disabled). However, it doesn't seem to take effect unless I manually disable then re-enable `auto-complete-mode` via `M-x`.

Of course that defeats the purpose of having a hook to load auto-complete automatically. I've looked in the `Messages` buffer, and haven't seen any errors or warnings. So far, I haven't been able to figure this out w/ the help of Google, IRC, etc., so I was wondering if you might have any insights.

Thanks.