/bin/emacs-tags
http://github.com/rejeep/emacs · #! · 17 lines · 14 code · 3 blank · 0 comment · 0 complexity · 4e9edc1afa7b7f5adf8f1d087e697f22 MD5 · raw file
- #!/usr/bin/env emacs --script
- ;; Creates a TAGS file for all .el files in the given path (none path
- ;; means ~/.emacs.d) and places it in the current folder.
- ;;
- ;; Usage:
- ;; emacs-tags
- ;; emacs-tags path
- ;; emacs-tags path1 path2 ...
- (require 'find-lisp)
- (let ((files) (paths (or argv (list "~/.emacs.d"))))
- (dolist (path paths)
- (setq files (append files (find-lisp-find-files path "\\.el$"))))
- (shell-command (concat "etags " (mapconcat 'identity files " "))))
- (message "Successfully created TAGS file")