Skip to content

Commit

Permalink
tweak(org): honor default command when archiving
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
real-or-random authored and hlissner committed Feb 10, 2024
1 parent 30a7f2d commit d6db031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lang/org/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ between the two."
(:when (modulep! :completion vertico)
"." #'consult-org-heading
"/" #'consult-org-agenda)
"A" #'org-archive-subtree
"A" #'org-archive-subtree-default
"e" #'org-export-dispatch
"f" #'org-footnote-action
"h" #'org-toggle-heading
Expand Down Expand Up @@ -1090,7 +1090,7 @@ between the two."
"n" #'org-narrow-to-subtree
"r" #'org-refile
"s" #'org-sparse-tree
"A" #'org-archive-subtree
"A" #'org-archive-subtree-default
"N" #'widen
"S" #'org-sort)
(:prefix ("p" . "priority")
Expand Down

0 comments on commit d6db031

Please sign in to comment.