Created
March 6, 2009 17:45
-
-
Save anonymous/74988 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
;;; elispでタグジャンプっぽいもの | |
(setq find-function-C-source-directory "c:/home/lxuser/src/emacs-22.2/src/") | |
(global-set-key [(control ?c) ?f] 'find-library) | |
(define-key ctl-x-map [?j] 'find-function) | |
(defun find-symbol-at-point () | |
(interactive) | |
;; (or (find-variable-at-point) (find-function-at-point)) | |
(let ((sym (symbol-at-point))) | |
(cond ((null sym) nil) | |
((boundp sym) (find-variable-other-window sym)) | |
((fboundp sym) (find-function-other-window sym)) | |
(t (error "not found: %s" sym))))) | |
(define-key esc-map [?.] 'find-symbol-at-point) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment