How to programmatically create/update a TAGS file with emacs?

后端 未结 7 1103
我在风中等你
我在风中等你 2021-01-31 11:20

Is there any plugin for emacs to automatically update the TAGS file in my C project (for example on buffer save or access) or create a new one if there is no TAGS file present?

7条回答
  •  难免孤独
    2021-01-31 11:41

    Try out my `ctags.el'[1] module.

    Configuration example:

    (setq tags-revert-without-query t)
    (global-set-key (kbd "") 'ctags-create-or-update-tags-table)
    

    Then just press to update or create your TAGS file. That function look for a file TAGS in the current and its parent directories, if a TAG file is not found it ask you where create a new one.

    It is a new library and probably has bugs, etc, so any help is welcome.

    [1] https://bitbucket.org/semente/ctags.el/

提交回复
热议问题