Created
November 7, 2011 15:29
-
-
Save syohex/1345277 to your computer and use it in GitHub Desktop.
use or require しているモジュールを保管する
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 my/imported-modules () | |
(interactive) | |
(let (imported-modules) | |
(save-excursion | |
(goto-char (point-min)) | |
(while (re-search-forward "\\(use\\|require\\) +\\([^;]+\\);" nil t) | |
(push (list (buffer-substring-no-properties (match-beginning 2) (match-end 2))) | |
imported-modules) | |
(setq tms imported-modules)) | |
(completing-read "what module? : " imported-modules)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment