Could anyone help me out in configuring auto-complete-clang for Emacs on Ubuntu? I am a newbie to Emacs. I have auto-complete working, and Yasnippet, and i can also compile code with clang++, i just can't get auto-complete-clang to work. Any help in this configuration would be appreciated.
right now my .emacs file looks like:
;; Auto Complete
(add-to-list 'load-path
"~/.emacs.d/elpa/auto-complete-20130724.1750/")
(require 'auto-complete-config)
(add-to-list 'load-path
"~/.emacs.d/elpa/auto-complete-20130724.1750/dict/")
(ac-config-default)
;; Yasnippet
(add-to-list 'load-path
"~/.emacs.d/elpa/yasnippet-20131014.928/")
(require 'yasnippet)
(yas-global-mode 1)
;; Autocomplete Clang
(add-to-list 'load-path
"~/.emacs.d/elpa/auto-complete-clang-20120612.2224/")
(require 'auto-complete-config)
(require 'auto-complete-clang)
M-: ac-sources
if it lists something that hasclang
in it, you are fine. Another thing to try:C-h f ac-clang-candidate
then instrument it for debugging:C-u C-c f
and see if it is entered when autocompleting something in your code. – user797257