diff options
author | Amin Bandali <mab@gnu.org> | 2018-10-09 22:39:22 -0400 |
---|---|---|
committer | Amin Bandali <mab@gnu.org> | 2018-10-09 22:39:22 -0400 |
commit | 458ff84b5365eb2e97a87b3253bdbb4184f229b4 (patch) | |
tree | 93ca61ffe435e556c0bf9f528e94cf4b615f4563 | |
parent | 87f61b04bf398e1b551f4a9b07d2303ec3980b78 (diff) | |
download | configs-458ff84b5365eb2e97a87b3253bdbb4184f229b4.tar.gz configs-458ff84b5365eb2e97a87b3253bdbb4184f229b4.tar.xz configs-458ff84b5365eb2e97a87b3253bdbb4184f229b4.zip |
[emacs] set up outline-minor-mode for prog-mode, with bindings
-rw-r--r-- | init.org | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -921,6 +921,27 @@ There's no way I could top that, so I won't attempt to. :hook (ibuffer . (lambda () (ibuffer-switch-to-saved-filter-groups "default")))) #+end_src +*** Outline + +#+begin_src emacs-lisp +(use-package outline + :hook (prog-mode . outline-minor-mode) + :bind + (:map + outline-minor-mode-map + ("<s-tab>" . outline-toggle-children) + ("s-p" . outline-previous-visible-heading) + ("s-n" . outline-next-visible-heading) + :prefix-map amin--outline-prefix-map + :prefix "s-o" + ("TAB" . outline-toggle-children) + ("a" . outline-hide-body) + ("H" . outline-hide-body) + ("S" . outline-show-all) + ("h" . outline-hide-subtree) + ("s" . outline-show-subtree))) +#+end_src + * Borg's =layer/essentials= TODO: break this giant source block down into individual org sections. |