emacs: update speedbar variables to hide directories and files

This commit is contained in:
Protesilaos 2026-08-05 16:46:36 +03:00
parent d33751d21a
commit b6fca99207
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 4 additions and 0 deletions

View file

@ -281,6 +281,8 @@ With optional argument FRAME, return the list of buffers of FRAME."
speedbar-window-max-width 60)
(setq speedbar-indentation-width 4)
(setq speedbar-show-unknown-files t)
(setq speedbar-directory-unshown-regexp "\\`\\.\\.?\\'")
(setq speedbar-file-unshown-regexp "\\`0123456789abcdefghijklmnopqrstuvwxyz\\'") ; nonsense here because I cannot set this to nil
(prot-emacs-hook speedbar-visiting-tag-hook (speedbar-recenter speedbar-highlight-one-tag-line))
(defun prot/speedbar-imenu-flatten (elements)

View file

@ -7084,6 +7084,8 @@ flatten it because I do not like the default grouping behaviour.
speedbar-window-max-width 60)
(setq speedbar-indentation-width 4)
(setq speedbar-show-unknown-files t)
(setq speedbar-directory-unshown-regexp "\\`\\.\\.?\\'")
(setq speedbar-file-unshown-regexp "\\`0123456789abcdefghijklmnopqrstuvwxyz\\'") ; nonsense here because I cannot set this to nil
(prot-emacs-hook speedbar-visiting-tag-hook (speedbar-recenter speedbar-highlight-one-tag-line))
(defun prot/speedbar-imenu-flatten (elements)