I tend to stash a lot when using git, so my "stash" section in magit-stashes is getting pretty long. I'm not running out of hard-drive space or anything, so I don't want to delete the stashes. Can I make it so that when I open up magit-status, they're automatically hidden (as if you'd pressed tab while over the "Stashes" heading)?

1 Answer 1


You can use the new magit-section-initial-visibility-alist option for that purpose.

(add-to-list 'magit-section-initial-visibility-alist '(stashes . hide))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.