The allout
mode document says,
We recommend customizing
allout-command-prefix
to use just\C-c
as the command prefix, if the allout bindings don't conflict with any personal bindings you have on\C-c
.
I don't like to customize
the variable, but like to configure it instead (I think \C-c\C-c
is a better option). How can I do that?
UPDATE:
I tried the suggested solution like the following in my init, and it works great.
(defun my-allout-mode-hook ()
(setq allout-command-prefix (kbd "C-c C-c"))
)
(add-hook 'allout-mode-hook 'my-allout-mode-hook)
Another question, how to enable the allout
minor mode on Emacs starts for all modes?
Thanks
allout-mode-hook
for this. You should simply be able to put thesetq
call in your init file. This is because when a variable value is set before the library which defines it has been loaded, Emacs retains that custom value when the library loads (rather than clobbering it with the default value from the variable's definition).