Guest User

Untitled

a guest
May 2nd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. (load-file "~/.emacs.d/auto-complete.el")
  2. (load-file "~/.emacs.d/auto-complete-config.el")
  3.  
  4. (require 'auto-complete)
  5. (require 'auto-complete-config)
  6. (global-auto-complete-mode t)
  7. ; Sample configuration:
  8.  
  9. ; Here is my configuration. It is useful for many people.
  10.  
  11. (setq-default ac-sources '(ac-source-words-in-same-mode-buffers))
  12. (add-hook 'emacs-lisp-mode-hook
  13. (lambda () (add-to-list 'ac-sources 'ac-source-symbols)))
  14. (add-hook 'auto-complete-mode-hook
  15. (lambda () (add-to-list 'ac-sources 'ac-source-filename)))
  16. (global-auto-complete-mode t)
  17. (set-face-background 'ac-candidate-face "lightgray")
  18. (set-face-underline 'ac-candidate-face "darkgray")
  19. (set-face-background 'ac-selection-face "steelblue")
  20. (define-key ac-completing-map "\M-n" 'ac-next)
  21. (define-key ac-completing-map "\M-p" 'ac-previous)
  22. (setq ac-auto-start 2)
  23. (setq ac-dwim t)
  24. (define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
Add Comment
Please, Sign In to add comment