https://github.com/syohex/emacs-ac-etags.git
git clone 'git://github.com/syohex/emacs-ac-etags.git'
ac-etags.el
is etags/ctags completion source for auto-complete.
You can use this package with etags/ctags of Emacs and Exuberant Ctags
You can install ac-etags.el
from MELPA with package.el
M-x package-install ac-etags
ac-etags-setup
Setup auto-complete source for etags. This command must be called at the beginning.
ac-etags-ac-setup
Setup etags auto-complete
source and enable auto-complete-mode
if
auto-complete
is not enabled.
ac-etags-clear-cache
Clear completions cache. You should clear cache if you switch project and TAGS file.
ac-etags-requires
(Default 3
)Required number of characters of this source completion.
You should change this value before calling ac-etags-setup
.
I recommend to use custom-set-variables
for setting this value.
(custom-set-variables
'(ac-etags-requires 1))
(eval-after-load "etags"
'(progn
(ac-etags-setup)))
(add-hook 'c-mode-common-hook 'ac-etags-ac-setup)
(add-hook 'ruby-mode-common-hook 'ac-etags-ac-setup)
# Create TAG file with etags
% etags *.c *.h
# Create TAG file with Exuberant Ctags(You must specify '-e' option)
% ctags -e *.c *.h
Set path of TAG by M-x visit-tags-table
You can completion with etags/ctags now.