Re: New package `outline-occur'
Juri Linkov <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Organization | LINKOV.NET |
| Message-ID | <[email protected]> |
>> Since 'outline-mode' and 'outline-minor-mode' use dedicated >> keymaps, we need to bind a new key (the suggested key 'M-o' >> is the most intuitive) under the existing prefix keys >> 'outline-mode-prefix-map' and 'outline-minor-mode-prefix'. > > Besides the `outline-mode' and `outline-minor-mode' keymaps, I also > thought on adding it to `search-map'. Something like this: > > (keymap-set search-map "M-o" #'outline-occur) > > So, you can do `M-s M-o' from any buffer---even if the Outline modes are > not enabled. What do you think? Usually, it's expected that global keys should work in any buffer. However, 'outline-occur' depends on the predefined 'outline-regexp'.