tweak(org): honor default command when archiving

Change the binding for archiving to `org-archive-subtree-default`, which
is the recommend "catch-all" command in the org manual. The user can
specify the actual command in `org-archive-default-command`. The default
for this variable is `org-archive-subtree`, which we previously used for
the binding, so this commit changes behavior only for users who have set
`org-archive-default-command` explicitly.
This commit is contained in:
Tim Ruffing 2024-02-10 09:53:27 +01:00 committed by Yann Esposito (Yogsototh)
parent e3deab3e21
commit b00a01ea06
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -957,7 +957,7 @@ between the two."
(:when (modulep! :completion vertico) (:when (modulep! :completion vertico)
"." #'consult-org-heading "." #'consult-org-heading
"/" #'consult-org-agenda) "/" #'consult-org-agenda)
"A" #'org-archive-subtree "A" #'org-archive-subtree-default
"e" #'org-export-dispatch "e" #'org-export-dispatch
"f" #'org-footnote-action "f" #'org-footnote-action
"h" #'org-toggle-heading "h" #'org-toggle-heading
@ -1090,7 +1090,7 @@ between the two."
"n" #'org-narrow-to-subtree "n" #'org-narrow-to-subtree
"r" #'org-refile "r" #'org-refile
"s" #'org-sparse-tree "s" #'org-sparse-tree
"A" #'org-archive-subtree "A" #'org-archive-subtree-default
"N" #'widen "N" #'widen
"S" #'org-sort) "S" #'org-sort)
(:prefix ("p" . "priority") (:prefix ("p" . "priority")