unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Auto complete not starting
@ 2010-08-09 18:03 Andrea Crotti
  2010-08-09 20:27 ` Andrea Crotti
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Crotti @ 2010-08-09 18:03 UTC (permalink / raw)
  To: help-gnu-emacs

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)
(ac-config-default)

(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)))

(dolist
    (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
               'lisp-interaction-mode-hook
               'ielm-mode-hook
               ))
  (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...




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-09 22:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 18:03 Auto complete not starting Andrea Crotti
2010-08-09 20:27 ` Andrea Crotti
2010-08-09 20:32   ` Deniz Dogan
2010-08-09 20:34   ` Richard Riley
2010-08-09 21:00     ` Andrea Crotti
2010-08-09 21:39       ` Dan Davison
2010-08-09 22:05         ` Andrea Crotti
2010-08-09 21:14     ` Andrea Crotti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).