Skip to content

Commit

Permalink
Add which-func utility
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Apr 11, 2014
1 parent b68a08a commit 8ee19e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions editutil.el
Expand Up @@ -552,6 +552,13 @@
(message "Here is righht hand side.")
(goto-char (match-end 0)))))

;;;###autoload
(defun editutil-show-here-function ()
(interactive)
(if (not which-func-mode)
(message "`which-func-mode' is not enabled")
(message "%s" (gethash (selected-window) which-func-table))))

;;;###autoload
(defun editutil-default-setup ()
(interactive)
Expand Down Expand Up @@ -595,6 +602,8 @@

(define-key my/ctrl-q-map (kbd "h") 'editutil-move-left-hand-side)
(define-key my/ctrl-q-map (kbd "l") 'editutil-move-right-hand-side)
(define-key my/ctrl-q-map (kbd "?") 'editutil-show-here-function)

(define-key isearch-mode-map [remap isearch-exit] 'editutil-isearch-exit)

(define-key minibuffer-local-map (kbd "C-M-u") 'editutil-minibuffer-up-dir)
Expand Down

0 comments on commit 8ee19e8

Please sign in to comment.