我一直试图设置emacs-clang-complete-async。我已经编译了clang-complete二进制文件,并且没有在emacs中收到任何错误,但自动完成功能似乎无法正常工作。
这就是我在.emacs中所拥有的:
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-clang-async)
(defun ac-cc-mode-setup ()
(setq ac-clang-complete-executable "~/.emacs.d/clang-complete")
(setq ac-sources '(ac-source-clang-async))
(ac-clang-launch-completion-process)
)
(defun ac-common-setup ()
())
(defun my-ac-config ()
(add-hook 'c-mode-common-hook 'ac-cc-mode-setup)
(add-hook 'auto-complete-mode-hook 'ac-common-setup)
(global-auto-complete-mode t))
(my-ac-config)