#author("2020-07-23T23:52:10+00:00","","")
#author("2020-07-23T23:52:50+00:00","","")
#topicpath

///////////////////////////////////////////////////////////////////////////////
* 目次 [#lf03f771]
#contents();

////////////////////////////////////////////////////////////////////////////////
* ctags-exuberant [#zaeb6f2c]
- 正しくは、Exuberant ctags という。このページ名は、Debian のパッケージ名に合わせている。
- ctags の派生プログラムである。
- install 後、実行ファイルは /usr/bin/ctags-exuberant に配置される。システムによっては /usr/bin/ctags に symlink されることもある。
- %%debian 8 にはパッケージが存在しない。%% → exuberant-ctags というパッケージになっている。

//==============================================================================
** TAGS file の生成 [#zb8f7b29]
 $ ctags-exuberant -e -R [path]
- これにより、 'TAGS' という名前のファイルが生成される。
- emacs からの使い方は、[[etags>Prog/TagSystem#etags]] と基本的に同じ
- emacs からの使い方は、[[etags>Prog/TagSystem/etags]] と基本的に同じ

//==============================================================================
** emacs から TAGS の生成を行えるようにする [#t1312651]
- ${HOME}/.emacs または ${HOME}/.emacs.d/init.el に下記の行を追加する:
 (setq path-to-ctags "/usr/bin/ctags-exuberant") ;; <- your ctags path here
 (defun create-tags (dir-name)
   "Create tags file."
   (interactive "DDirectory: ")
   (shell-command
    (format "ctags -f %s -e -R %s" path-to-ctags (directory-file-name dir-name)))
   )
- TAGS の生成を実行
 M-x: create-tags

//==============================================================================
** 参考リンク [#r4445a89]
- [[BuildTags>http://www.emacswiki.org/emacs/BuildTags]]
- [[EmacsTags>http://www.emacswiki.org/emacs/EmacsTags]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS