Variable: treemacs-header-close-button
treemacs-header-close-button is a variable defined in
treemacs-header-line.el.
Value
#("(❌)" 0 3
(local-map
(keymap
(header-line keymap
(mouse-1
. #[257 "\300\301!@!\207"
[delete-window event-start] 4
("/root/.emacs.d/elpa/treemacs-20251226.1307/treemacs-header-line.elc"
. 135)
"e"])))
face treemacs-header-button-face))
Documentation
Header button to close the treemacs window.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-header-line.el
(cl-macrolet
((make-local-map
(&rest body)
`(-doto (make-sparse-keymap)
(define-key [header-line mouse-1]
(lambda (event)
(interactive "e")
,@body)))))
(defconst treemacs-header-close-button
(propertize
"(❌)"
'local-map (make-local-map (delete-window (posn-window (event-start event))))
'face 'treemacs-header-button-face)
"Header button to close the treemacs window.")
(defconst treemacs-header-projects-button
(propertize
"(P)"
'local-map
(make-local-map
(let* ((menu
(easy-menu-create-menu
nil
`(["Add Project" treemacs-add-project]
["Add Projectile Project" treemacs-projectile :visible (featurep 'treemacs-projectile)]
["Remove Project" treemacs-remove-project-from-workspace])))
(choice (x-popup-menu event menu)))
(when choice (call-interactively (lookup-key menu (apply 'vector choice))))))
'face 'treemacs-header-button-face)
"Header button to open a project administration menu.")
(defconst treemacs-header-workspace-button
(propertize
"(W)"
'local-map
(make-local-map
(let* ((menu
(easy-menu-create-menu
nil
`(["Edit Workspaces" treemacs-edit-workspaces]
["Create Workspace" treemacs-create-workspace]
["Remove Workspace" treemacs-remove-workspace]
["Rename Workspace" treemacs-rename-workspace]
["Switch Workspace" treemacs-switch-workspace]
["Set Fallback Workspace" treemacs-set-fallback-workspace])))
(choice (x-popup-menu event menu)))
(when choice (call-interactively (lookup-key menu (apply 'vector choice))))) )
'face 'treemacs-header-button-face)
"Header button to open a workspace administration menu.")
(defconst treemacs-header-toggles-button
(propertize
"(T)"
'local-map
(make-local-map
(let* ((menu
(easy-menu-create-menu
nil
`([,(format "Dotfile Visibility (Currently %s)"
(if treemacs-show-hidden-files "Enabled" "Disabled"))
treemacs-toggle-show-dotfiles]
[,(format "Follow-Mode (Currently %s)"
(if treemacs-follow-mode "Enabled" "Disabled"))
treemacs-follow-mode]
[,(format "Filewatch-Mode (Currently %s)"
(if treemacs-filewatch-mode "Enabled" "Disabled"))
treemacs-filewatch-mode]
[,(format "Fringe-Indicator-Mode (Currently %s)"
(if treemacs-fringe-indicator-mode "Enabled" "Disabled"))
treemacs-fringe-indicator-mode])))
(choice (x-popup-menu event menu)))
(when choice (call-interactively (lookup-key menu (apply 'vector choice))))) )
'face 'treemacs-header-button-face)
"Header button to open a minor-modes/toggles administration menu."))