Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (load-file "~/.emacs.d/auto-complete.el")
- (load-file "~/.emacs.d/auto-complete-config.el")
- (require 'auto-complete)
- (require 'auto-complete-config)
- (global-auto-complete-mode t)
- ; Sample configuration:
- ; Here is my configuration. It is useful for many people.
- (setq-default ac-sources '(ac-source-words-in-same-mode-buffers))
- (add-hook 'emacs-lisp-mode-hook
- (lambda () (add-to-list 'ac-sources 'ac-source-symbols)))
- (add-hook 'auto-complete-mode-hook
- (lambda () (add-to-list 'ac-sources 'ac-source-filename)))
- (global-auto-complete-mode t)
- (set-face-background 'ac-candidate-face "lightgray")
- (set-face-underline 'ac-candidate-face "darkgray")
- (set-face-background 'ac-selection-face "steelblue")
- (define-key ac-completing-map "\M-n" 'ac-next)
- (define-key ac-completing-map "\M-p" 'ac-previous)
- (setq ac-auto-start 2)
- (setq ac-dwim t)
- (define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
Add Comment
Please, Sign In to add comment