$ cat ~/.emacs
;emacs tags ; 不需要特殊的配置,就可以直接使用;
; M-. 查找一个tag,比如函数定义类型定义等。 查找标签定义: `M-.'
; C-u M-. 查找下一个tag的位置
; M-* 回到上一次运行M-.前的光标位置。 回跳: `M-*'
; M-TAB 自动补齐函数名。
; 查找下一个: `M-,' 或者 `M-0 M-.'
; 做标签查找: `M-x tags-search <regexp>'
;Etags
; M-. TAG <RET>Find first definition of TAG (find-tag').
; C-u M-.Find next alternate definition of last tag specified.
; C-u - M-.Go back to previous tag found.
; C-M-. PATTERN <RET>Find a tag whose name matches PATTERN (find-tag-regexp').
; C-u C-M-.Find the next tag whose name matches the last pattern used.
; C-x 4 . TAG <RET>Find first definition of TAG, but display it in another window (find-tag-other-window').
; C-x 5 . TAG <RET>Find first definition of TAG, and create a new frame to select the buffer (find-tag-other-frame').
; M-*Pop back to where you previously invoked M-. and friends.
本文介绍了Emacs编辑器中如何高效地利用tag进行代码导航,包括查找定义、自动补全函数名等功能,并提供了多种快捷键操作说明。

被折叠的 条评论
为什么被折叠?



