Skip to content

Commit

Permalink
transient-setup-buffer-hook: New hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Apr 5, 2024
1 parent 7f6c39c commit 6da27d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,10 @@ variable instead.")
(defvar transient-exit-hook nil
"Hook run after exiting a transient.")

(defvar transient-setup-buffer-hook nil
"Hook run when setting up the transient buffer.
That buffer is current and empty when this hook runs.")

(defvar transient--prefix nil)
(defvar transient--layout nil)
(defvar transient--suffixes nil)
Expand Down Expand Up @@ -3594,6 +3598,7 @@ have a history of their own.")
(button-get (1- (point)) 'command))
(transient--heading-at-point))))
(erase-buffer)
(run-hooks 'transient-setup-buffer-hook)
(setq window-size-fixed t)
(when (bound-and-true-p tab-line-format)
(setq tab-line-format nil))
Expand Down

0 comments on commit 6da27d7

Please sign in to comment.