Define a few keybindings in terms of help-command

This commit is contained in:
Bozhidar Batsov 2014-05-26 19:02:46 +03:00
parent aa73011674
commit c0550168f3

View file

@ -65,10 +65,10 @@
;; A complementary binding to the apropos-command (C-h a)
(define-key 'help-command "A" 'apropos)
(global-set-key (kbd "C-h C-f") 'find-function)
(global-set-key (kbd "C-h C-k") 'find-function-on-key)
(global-set-key (kbd "C-h C-v") 'find-variable)
(global-set-key (kbd "C-h C-l") 'find-library)
(define-key 'help-command (kbd "C-f") 'find-function)
(define-key 'help-command (kbd "C-k") 'find-function-on-key)
(define-key 'help-command (kbd "C-v") 'find-variable)
(define-key 'help-command (kbd "C-l") 'find-library)
;; a complement to the zap-to-char command, that doesn't eat up the target character
(autoload 'zap-up-to-char "misc" "Kill up to, but not including ARGth occurrence of CHAR.")