summarylogtreecommitdiffstats
path: root/auto-complete-clang-async.install
diff options
context:
space:
mode:
authorVinícius dos Santos Oliveira2015-06-14 02:01:14 -0300
committerVinícius dos Santos Oliveira2015-06-14 02:01:14 -0300
commit6ec7373ef56895b6ac6ad67f391125cf82859be2 (patch)
treec477e7f585bcfda6972ff267dbabfe112cb8af6f /auto-complete-clang-async.install
downloadaur-6ec7373ef56895b6ac6ad67f391125cf82859be2.tar.gz
Genesis commit
Diffstat (limited to 'auto-complete-clang-async.install')
-rwxr-xr-xauto-complete-clang-async.install27
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 00000000000..e875005817c
--- /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
+}