Created
August 12, 2010 05:13
-
-
Save miyamuko/520355 to your computer and use it in GitHub Desktop.
package に対応したタグジャンプ #xyzzy
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
| ;; package に対応したタグジャンプ | |
| ;; 標準のだと (ed::find-file-internal) などでタグジャンプしても飛べない | |
| (defun lisp-tags-find-target-with-package () | |
| (multiple-value-bind (class name functionp) | |
| (ed::lisp-tags-find-target) | |
| (values class (substitute-string name "^[a-z]+::?" "") functionp))) | |
| (defun install-lisp-tags-find-target-with-package () | |
| (setf tags-find-target #'lisp-tags-find-target-with-package)) | |
| (add-hook '*lisp-mode-hook* 'install-lisp-tags-find-target-with-package) | |
| (add-hook '*lisp-interaction-mode-hook* 'install-lisp-tags-find-target-with-package) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment