liushihao456 / symbols-outline.el

Display symbols (functions, variables, etc) in a side window.
GNU General Public License v3.0
58 stars 3 forks source link

New feature request - keep enum and struct etc folded in c++ at start for vertical space saving #8

Closed zijianyue closed 5 months ago

zijianyue commented 5 months ago
image
liushihao456 commented 5 months ago

Added the customization variable symbols-outline-initial-folded-node-kinds. Please check out the latest update.

To achieve your purpose, you can set the variable like below:

(with-eval-after-load 'symbols-outline
  (setq symbols-outline-initial-folded-node-kinds '("enum" "struct")))
zijianyue commented 5 months ago

OK,it works well.