[Top][All Lists]

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

Auto complete not starting

From: Andrea Crotti
Subject: Auto complete not starting
Date: Mon, 09 Aug 2010 20:03:15 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

I'm in very funny situation, since I've updated auto-complete and
yasnippet some time ago it didn't work as it used to be, being normally
too slow.

Now I don't know how I fixed this and it works like a charm, but if I
start another emacs instance I still have the same problem.
Given that now I know it's fixable I would like to get it done finally.

What my configuration looks like now:

--8<---------------cut here---------------start------------->8---
;;; Require
(require 'auto-complete)
;; Various configurations
(require 'auto-complete-config)

(setq ac-auto-start 2)                  ;automatically start
(setq ac-override-local-map nil)        ;don't override local map
(setq ac-use-menu-map t)
(setq ac-candidate-limit 20)
;; Default settings
(define-key ac-menu-map "\C-n" 'ac-next)
(define-key ac-menu-map "\C-p" 'ac-previous)  

;; making it a bit faster
(setq ac-delay 0.1)
(setq ac-auto-show-menu 0.4)
(setq ac-quick-help-delay 0.5)
;; using a dictionary (emtpy now)
(add-to-list 'ac-dictionary-directories (concat conf "auto-complete/dict"))

(setq-default ac-sources
              (append ac-sources '(ac-source-yasnippet)))

    (my-ac-mode '(nesc-mode org-mode html-mode xml-mode))
  (add-to-list 'ac-modes my-ac-mode))

; this is used for trigger ac actions from org-mode also
(add-to-list 'ac-trigger-commands 'org-self-insert-command)

;; using a nice function is ac-config
(dolist (hook (list
  (add-hook hook 'ac-emacs-lisp-mode-setup))
--8<---------------cut here---------------end--------------->8---

And now the funny thing is that in the new emacs it doesn't start at
all, I have to run manually
ac-complete-(functios|yasnippet) etc etc...
Any iidea??

If I could do a DIFF between two global configurations (or maybe dump
the actual one) it would be grat also...

reply via email to

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