Function: treemacs-define-RET-action
treemacs-define-RET-action is a byte-compiled function defined in
treemacs-interface.el.
Signature
(treemacs-define-RET-action STATE ACTION)
Documentation
Define the behaviour of treemacs-RET-action.
Determines that a button with a given STATE should lead to the execution of
ACTION.
The list of possible states can be found in treemacs-valid-button-states.
ACTION should be one of the treemacs-visit-node-* commands.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-define-RET-action (state action)
"Define the behaviour of `treemacs-RET-action'.
Determines that a button with a given STATE should lead to the execution of
ACTION.
The list of possible states can be found in `treemacs-valid-button-states'.
ACTION should be one of the `treemacs-visit-node-*' commands."
(setf treemacs-RET-actions-config (assq-delete-all state treemacs-RET-actions-config))
(push (cons state action) treemacs-RET-actions-config))