ac-etags.el
is etags/ctags completion source for auto-complete.
You can use this package with etags/ctags of Emacs and Exuberant Ctags
ac-etags
is available on MELPA and MELPA stable
You can install ac-etags
with the following command.
M-x package-install [RET] ac-etags [RET]
- Emacs 23 or higher
- auto-complete
Setup auto-complete source for etags. This command must be called at the beginning.
Setup etags auto-complete
source and enable auto-complete-mode
if
auto-complete
is not enabled.
Clear completions cache. You should clear cache if you switch project and TAGS file.
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.