diff options
author | jao <jao@gnu.org> | 2021-10-05 14:36:29 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-10-05 14:37:24 +0100 |
commit | ba95ee504371c7a30f67e080a77e9a4d316e0bfb (patch) | |
tree | caf219834f4ecc26bbb59147a4f1e76911f9b2b3 | |
parent | 1c3fa2d6ba291ca20d5b1c9d973ab1cc9739fc96 (diff) | |
download | elibs-ba95ee504371c7a30f67e080a77e9a4d316e0bfb.tar.gz elibs-ba95ee504371c7a30f67e080a77e9a4d316e0bfb.tar.bz2 |
bicycle and outlines
-rw-r--r-- | completion.org | 4 | ||||
-rw-r--r-- | init.org | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/completion.org b/completion.org index ee87ed4..afb4ef6 100644 --- a/completion.org +++ b/completion.org @@ -447,7 +447,7 @@ :init (setq org-imenu-depth 7) :config (defun jao-imenu-hook () - (when (derived-mode-p 'org-mode) - (org-reveal t))) + (cond ((derived-mode-p 'org-mode) (org-reveal t)) + (outline-minor-mode (outline-show-entry)))) (add-hook 'imenu-after-jump-hook #'jao-imenu-hook)) #+end_src @@ -2113,6 +2113,26 @@ :init (add-hook 'prog-mode-hook #'smartscan-mode) :diminish) #+end_src +*** Outlines + #+begin_src emacs-lisp + ;; (use-package outline + ;; :config + ;; (defun jao-outline-setup () (hide-sublevels 1)) + ;; (add-hook 'outline-minor-mode-hook #'jao-outline-setup)) + + (use-package bicycle + :ensure t + :after outline + :bind (:map outline-minor-mode-map + ("C-<tab>" . bicycle-cycle) + ("S-<tab>" . bicycle-cycle-global))) + + (use-package prog-mode + :config + (add-hook 'prog-mode-hook 'outline-minor-mode) + (add-hook 'prog-mode-hook 'hs-minor-mode)) + + #+end_src *** Paredit and parens #+begin_src emacs-lisp (require 'paren) |