From 0bf537be889e2063101b400ee91c58ccd261a770 Mon Sep 17 00:00:00 2001 From: luxick Date: Mon, 12 Apr 2021 06:34:58 +0200 Subject: [PATCH] Add smart folding function for org-mode --- README.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.org b/README.org index 8c682bb..81e42f5 100644 --- a/README.org +++ b/README.org @@ -247,6 +247,19 @@ This is a minor mode for keeping the cursor at the center of the screen while sc (bind-key "C-c f" 'lux/focus-mode) #+end_src +** Org show only current subtree + +Fold all other subtrees in an org file and show just the current one +#+begin_src emacs-lisp + (defun lux/org-show-just-me (&rest _) + "Fold all other trees, then show entire current subtree." + (interactive) + (org-overview) + (org-reveal) + (org-show-subtree)) + (bind-key "C-c m" 'lux/org-show-just-me) +#+end_src + * Fonts Set up the fonts to use. I like the [[https://typeof.net/Iosevka/][Iosevka]] font family. #+begin_src emacs-lisp