Skip to content

Commit

Permalink
emacs:vulpea: org-archive-subtree-tidily
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed Jan 24, 2025
1 parent 32c6825 commit 3aa7f5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emacs/lisp/init-vulpea.el
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@
(use-package org-archive
:ensure nil
:after org
:general
(general-define-key
:keymaps 'org-mode-map
[remap org-archive-subtree] 'org-archive-subtree-tidily)
:init
(setq-default
org-archive-location "::* Archive"
Expand Down
9 changes: 9 additions & 0 deletions emacs/lisp/lib-vulpea.el
Original file line number Diff line number Diff line change
Expand Up @@ -644,5 +644,14 @@ Defaults to `string-from'."



;;;###autoload
(defun org-archive-subtree-tidily ()
"Archive current heading without changing visibility."
(interactive)
(org-save-outline-visibility t
(org-archive-subtree)))



(provide 'lib-vulpea)
;;; lib-vulpea.el ends here

0 comments on commit 3aa7f5c

Please sign in to comment.