Skip to content

Instantly share code, notes, and snippets.

@ncaq
Created March 23, 2013 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncaq/5228041 to your computer and use it in GitHub Desktop.
Save ncaq/5228041 to your computer and use it in GitHub Desktop.
ファイル更新した時に自動でTAGSファイルを更新
;;emacsで保存した時にetags更新
(defun etags-update ()
(if (file-exists-p "./TAGS")
(shell-command "etags *")))
(add-hook 'after-save-hook 'etags-update)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment