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.
| Option | Default | Meaning |
|---|---|---|
:treemacs-width | 35 | Sidebar width in columns |
:treemacs-wide-toggle-width | 70 | Width applied by pressing W in the tree; press again to restore |
:treemacs-collapse-dirs | 3 | Collapse chains of directories containing one child (src/demo); maximum chain depth |
:treemacs-show-hidden | true | Show dotfiles; .git is never shown |
:treemacs-follow-mode | true | Follow the current buffer's file in the tree |
:treemacs-filewatch-mode | true | Watch files and redraw (checked every 2 seconds) |
:treemacs-git-mode | true | Color nodes according to Git status |
:treemacs-sorting | :alphabetic-case-insensitive-asc | Sort 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-nodes | false | In a multi-project workspace, leave a blank line between projects |
:treemacs-auto-hide-min-width | 80 | Hide the project tree when the screen is narrower than this; nil disables auto-hiding |
:treemacs-persist-file | <config>/treemacs-persist.edn | Workspace storage (projects / expanded state) |
Raw Markdown: coxn manual (Markdown) · Installers: coxn product page