diff options
author | VinÃcius dos Santos Oliveira | 2015-06-14 02:01:14 -0300 |
---|---|---|
committer | VinÃcius dos Santos Oliveira | 2015-06-14 02:01:14 -0300 |
commit | 6ec7373ef56895b6ac6ad67f391125cf82859be2 (patch) | |
tree | c477e7f585bcfda6972ff267dbabfe112cb8af6f /auto-complete-clang-async.install | |
download | aur-6ec7373ef56895b6ac6ad67f391125cf82859be2.tar.gz |
Genesis commit
Diffstat (limited to 'auto-complete-clang-async.install')
-rwxr-xr-x | auto-complete-clang-async.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/auto-complete-clang-async.install b/auto-complete-clang-async.install new file mode 100755 index 000000000000..e875005817c3 --- /dev/null +++ b/auto-complete-clang-async.install @@ -0,0 +1,27 @@ +post_install() +{ +cat << EOF +add the following lines to your .emacs +=================================================================== +(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 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) +=================================================================== +EOF +} + +post_upgrade() +{ + post_install +} |