diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-02-22 23:26:14 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-02-22 23:26:14 +0000 |
commit | 27b538c521821823cfd8b2599bfc8ccb12379b75 (patch) | |
tree | 7bf8f6b33e4a3d7e41d1a17f2af00de816986129 | |
parent | 90456f0009a333aab91496b5d31806c521d899ad (diff) | |
download | ymh-emacs-27b538c521821823cfd8b2599bfc8ccb12379b75.tar.gz ymh-emacs-27b538c521821823cfd8b2599bfc8ccb12379b75.zip |
Add outline mode
-rw-r--r-- | init.el | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -964,8 +964,8 @@ https://yannherklotz.com")) 'minibuffer-complete-word 'self-insert-command minibuffer-local-completion-map) - ;; sbt-supershell kills sbt-mode: https://github.com/hvesalai/emacs-sbt-mode/issues/152 - (setq sbt:program-options '("-Dsbt.supershell=false"))) + ;; sbt-supershell kills sbt-mode: https://github.com/hvesalai/emacs-sbt-mode/issues/152 + (setq sbt:program-options '("-Dsbt.supershell=false"))) (use-package eglot :if (not ymh/emacs-29-p) @@ -1052,6 +1052,32 @@ https://yannherklotz.com")) :if (executable-find "zig") :ensure t) +(use-package outline + :bind-keymap ("C-c C-o" . outline-mode-map) + :bind (:map outline-mode-map + ("C-a" . outline-show-all) + ("C-b" . outline-backward-same-level) + ("C-c" . outline-hide-entry) + ("C-d" . outline-hide-subtree) + ("C-e" . outline-show-entry) + ("C-f" . outline-forward-same-level) + ("TAB" . outline-show-children) + ("C-k" . outline-show-branches) + ("C-l" . outline-hide-leaves) + ("RET" . outline-insert-heading) + ("C-n" . outline-next-visible-heading) + ("C-o" . outline-hide-other) + ("C-p" . outline-previous-visible-heading) + ("C-q" . outline-hide-sublevels) + ("C-s" . outline-show-subtree) + ("C-t" . outline-hide-body) + ("C-u" . outline-up-heading) + ("C-v" . outline-move-subtree-down) + ("C-^" . outline-move-subtree-up) + ("@" . outline-mark-subtree) + ("C-<" . outline-promote) + ("C->" . outline-demote))) + (setq gc-cons-threshold (* 1024 1024 10)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) |