Function: treemacs-define-doubleclick-action
treemacs-define-doubleclick-action is an autoloaded and byte-compiled
function defined in treemacs-mouse-interface.el.
Signature
(treemacs-define-doubleclick-action STATE ACTION)
Documentation
Define the behaviour of treemacs-doubleclick-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-mouse-interface.el
;;;###autoload
(defun treemacs-define-doubleclick-action (state action)
"Define the behaviour of `treemacs-doubleclick-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-doubleclick-actions-config (assq-delete-all state treemacs-doubleclick-actions-config))
(push (cons state action) treemacs-doubleclick-actions-config))