5. Project tree (treemacs) options

The :treemacs layer is enabled by default. Toggle the tree with C-x t t or M-m f t.

OptionDefaultMeaning
:treemacs-width35Sidebar width in columns
:treemacs-wide-toggle-width70Width applied by pressing W in the tree; press again to restore
:treemacs-collapse-dirs3Collapse chains of directories containing one child (src/demo); maximum chain depth
:treemacs-show-hiddentrueShow dotfiles; .git is never shown
:treemacs-follow-modetrueFollow the current buffer's file in the tree
:treemacs-filewatch-modetrueWatch files and redraw (checked every 2 seconds)
:treemacs-git-modetrueColor nodes according to Git status
:treemacs-sorting:alphabetic-case-insensitive-ascSort order; directories precede files. Options: :alphabetic-asc, :alphabetic-desc, :alphabetic-case-insensitive-asc, :alphabetic-case-insensitive-desc, :size-asc, :size-desc, :mod-time-asc, :mod-time-desc
:treemacs-space-between-root-nodesfalseIn a multi-project workspace, leave a blank line between projects
:treemacs-auto-hide-min-width80Hide the project tree when the screen is narrower than this; nil disables auto-hiding
:treemacs-persist-file<config>/treemacs-persist.ednWorkspace storage (projects / expanded state)

Raw Markdown: coxn manual (Markdown) · Installers: coxn product page