Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2009 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/74988 to your computer and use it in GitHub Desktop.
Save anonymous/74988 to your computer and use it in GitHub Desktop.
;;; 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