[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto complete not starting

From: Andrea Crotti
Subject: Re: Auto complete not starting
Date: Tue, 10 Aug 2010 00:05:09 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

Dan Davison <> writes:

> Org extracts (tangles) a .el file from the org file, so you can
> temporarily set this .el file as your ~/.emacs.el file and proceed as if
> org had never been involved in your emacs config (e.g. proceed to use
> bisection).
> Dan

Thanks God finally is fixed, it was the damn flyspell-prog-mode (which
is pretty cool anyway).

But the most funny part is that I was reading the code of auto-complete,
and almost incidentally I evaluated the ac-flyspell-workaround function,
and that's why it was working on this emacs instance.
Fore the future here is how they both go together.

--8<---------------cut here---------------start------------->8---
(defcustom to-spell-langs
  '(emacs-lisp-mode-hook python-mode-hook c-mode-hook nesc-mode-hook 
java-mode-hook jde-mode-hook haskell-mode-hook)
  "Set of programming modes for which I want to enable spelling in comments and 
  :type 'list)
(dolist (lang-hook to-spell-langs)
  (add-hook  lang-hook 'flyspell-prog-mode))

(require 'auto-complete)
--8<---------------cut here---------------end--------------->8---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]