Created
January 27, 2012 11:33
-
-
Save diasjorge/1688384 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun ruby-generate-tags() | |
(interactive) | |
(let ((root (ffip-project-root))) | |
(let ((my-tags-file (concat root "TAGS"))) | |
(message "Regenerating TAGS file: %s" my-tags-file) | |
(if (file-exists-p my-tags-file) | |
(delete-file my-tags-file)) | |
(shell-command | |
(format "find %s -iname '*.rb' | grep -v db | xargs ctags -a -e -f %s" | |
root my-tags-file)) | |
(if (get-file-buffer my-tags-file) | |
(kill-buffer (get-file-buffer my-tags-file))) | |
(visit-tags-table my-tags-file)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment