diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index ec5337e3fda..ae3f3e0035e 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -274,7 +276,12 @@ Buffer-menu-mode :interactive nil (setq-local buffer-stale-function (lambda (&optional _noconfirm) 'fast)) - (add-hook 'tabulated-list-revert-hook 'list-buffers--refresh nil t)) + (add-hook 'tabulated-list-revert-hook 'list-buffers--refresh nil t) + (add-hook 'revert-buffer-state-functions + (lambda () + (when (bound-and-true-p outline-minor-mode) + (lambda () + (outline-minor-mode-highlight-buffer)))))) (defun buffer-menu--display-help () (message "%s"