Created
November 6, 2009 12:50
-
-
Save diasjorge/227972 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 rinari-generate-tags() | |
(interactive) | |
(let ((my-tags-file (concat (rinari-root) "TAGS")) | |
(root (rinari-root))) | |
(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 -type f -iname \"*.rb\" | xargs ctags-exuberant -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