Function: treemacs-define-TAB-action

treemacs-define-TAB-action is a byte-compiled function defined in treemacs-interface.el.

Signature

(treemacs-define-TAB-action STATE ACTION)

Documentation

Define the behaviour of treemacs-TAB-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-TAB-action (state action)
  "Define the behaviour of `treemacs-TAB-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-TAB-actions-config (assq-delete-all state treemacs-TAB-actions-config))
  (push (cons state action) treemacs-TAB-actions-config))