Skip to content

Instantly share code, notes, and snippets.

@bmnn
Created December 27, 2013 17:24
Show Gist options
  • Save bmnn/8149899 to your computer and use it in GitHub Desktop.
Save bmnn/8149899 to your computer and use it in GitHub Desktop.
emacs; auto-complete; all buffers;
(require 'auto-complete-config)
(ac-config-default)
(setq-default
ac-sources '(
ac-source-words-in-all-buffer
ac-source-words-in-buffer
ac-source-files-in-current-dir
)
)
(defun auto-complete-mode-maybe ()
"Overwrite auto-complete-mode-maybe which by defaults turns autocomplete only on for buffers listed in ac-modes."
(unless (minibufferp (current-buffer))
(auto-complete-mode 1)))
(setq ac-use-fuzzy t)
(setq ac-ignore-case (quote smart))
(global-auto-complete-mode t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment