New binding for find-tag-no-prompt

I don't use it /very/ often, so M-t M-t is a fine choice. 't' in the
M-t prefix is an easy mnemonic for tag commands, too.
This commit is contained in:
Kashish Sharma 2015-03-27 17:07:39 +05:30
parent 85628eb1da
commit 21773ec4ee
1 changed files with 2 additions and 2 deletions

View File

@ -138,13 +138,13 @@
;;;; Vim-style prompt-less tag jumping
;;;; http://stackoverflow.com/questions/12074897/automatically-jump-to-tag-in-emacs
(global-unset-key (kbd "M-t"))
(defun find-tag-no-prompt ()
"Jump to the tag at point without prompting"
(interactive)
(find-tag (find-tag-default)))
(global-set-key (kbd "M-.") 'find-tag-no-prompt)
(global-set-key (kbd "M-t M-t") 'find-tag-no-prompt)
;;;; Custom keys
(global-set-key (kbd "C-x C-1") 'delete-other-windows)
(global-set-key (kbd "C-x C-2") 'split-window-below)
(global-set-key (kbd "C-x C-3") 'split-window-right)