Advertisement
Guest User

Untitled

a guest
Aug 14th, 2013
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; clang-complete
  2. (add-to-list 'load-path "~/code/auto-complete-install")
  3. (add-to-list 'load-path "~/code/auto-complete/lib/popup")
  4. (require 'auto-complete-config)
  5. (ac-config-default)
  6.  
  7. (add-to-list 'load-path "~/code/emacs-clang-complete-async")
  8.  
  9. (require 'auto-complete-clang-async)
  10.  
  11. (defun ac-cc-mode-setup ()
  12.   (setq ac-clang-complete-executable "~/code/emacs-clang-complete-async/clang-complete")
  13.   (setq ac-sources '(ac-source-clang-async))
  14.   (ac-clang-launch-completion-process)
  15. )
  16.  
  17. (defun my-ac-config ()
  18.   (add-hook 'c-mode-common-hook 'ac-cc-mode-setup)
  19.   (add-hook 'auto-complete-mode-hook 'ac-common-setup)
  20.   (global-auto-complete-mode t))
  21.  
  22. (my-ac-config)
Advertisement
RAW Paste Data Copied
Advertisement