I want to set a key binding for outline-next-visible-heading
but I fail to do so.
I believe using hooks is a solution for this so I added this to my .emacs
(defun outline-mode-test-hook()
(define-key outline-mode-prefix-map "j" 'outline-next-visible-heading))
(add-hook 'outline-mode-hook 'outline-mode-test-hook)
The key binding has no effect.
P.S. Who actually runs outline-mode-hook
? I didn't see any invocation within file outline.el
.
outline-mode
.(setq outline-minor-mode-prefix "\C-co")
set so all of my outline commands are prefixed withCtrl-c o
and work fine. When I typeCtrl-c o j
nothing happens. If I manually (usingC-x C-e
) execute define-key directive custom key binding start to work. But of course I need it to be done automatically on startup.