Emacs auto-complete does not display results

I am using the latest version auto-completein elpawith the new stable version of Emacs (24.3) on Linux. I have the following setting in my Emacs initialization file.

(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(require 'auto-complete-config)
(setq-default ac-sources
          '(
        ac-source-filename
        ac-source-abbrev 
        ac-source-dictionary
        ac-source-words-in-same-mode-buffers))
(ac-config-default)

If I start typing: /home/james/.em in a buffer (like Python buffer), I would expect autocomplete to suggest:

.emacs
.emacs.d

but shows nothing. The same thing happens with other files.

Sometimes I do see sentences and / or a pop-up menu appears, but in other cases it is not.

Any thoughts why?

+5
source share
1 answer

ac-config-default , AC-source. setq-default ac-sources, . auto-complete -, . -

(defun my-ac-emacs-lisp-mode ()
  (setq ac-sources '(ac-source-symbols ac-source-words-in-same-mode-buffers)))

(add-hook 'emacs-lisp-mode-hook 'my-ac-emacs-lisp-mode)

python- . , , ac-config-default, ,

(require 'auto-complete-config)
(ac-config-default)
(setq-default ac-sources
          '(
        ac-source-filename
        ac-source-abbrev 
        ac-source-dictionary
        ac-source-words-in-same-mode-buffers))

setq-default ac-sources , ac-config-default, .

+4

All Articles