From 569f992e30c68a4ac9cffeca2ba5b2c4fffcff56 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar <ved.manerikar@gmail.com> Date: Thu, 28 Nov 2024 15:56:30 +0530 Subject: [PATCH] Add a section on Narrowing and Folding in org-mode --- unravel-emacs.org | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/unravel-emacs.org b/unravel-emacs.org index 3bf31cd..c217b22 100644 --- a/unravel-emacs.org +++ b/unravel-emacs.org @@ -3611,10 +3611,7 @@ on how I use Org. ("M-." . org-edit-special) ; alias for C-c ' (mnenomic is global M-. that goes to source) :map org-src-mode-map ("M-," . org-edit-src-exit) ; see M-. above - :map narrow-map - ("b" . org-narrow-to-block) - ("e" . org-narrow-to-element) - ("s" . org-narrow-to-subtree)) + ) :config ;;;; general settings (setq org-ellipsis "...") @@ -3669,6 +3666,29 @@ on how I use Org. "Directory under which all archived content is stored.") (setq org-archive-location (concat org-archive-directory "/%s_archive::"))) #+end_src + +** The =unravel-org.el= section for narrowing and folding +:PROPERTIES: +:CUSTOM_ID: h:D11C6331-86BB-466D-AF65-A2A50F49A808 +:CREATED: [2024-11-28 Thu 15:55] +:END: +Narrowing and folding are really powerful ways of working with org-mode, since we tend to create so many nodes and subtrees when we write documents in Org + +#+begin_src emacs-lisp :tangle "unravel-modules/unravel-org.el" + ;;; Narrowing and Folding + (use-package org + :ensure nil + :bind + ( :map narrow-map + ("b" . org-narrow-to-block) + ("e" . org-narrow-to-element) + ("s" . org-narrow-to-subtree))) + + (use-package org-fold + :ensure nil + :config + (setq org-fold-catch-invisible-edits 'show-and-error)) +#+end_src ** The =unravel-org.el= Org to-do and refile settings :PROPERTIES: :CUSTOM_ID: h:024dd541-0061-4a10-b10b-b17dcd4794b9