Juanma Barranquero <lekktu <at> gmail.com> writes: > What about the problem with using `fit-window-to-buffer' in occur-hook?
Don't know if it helps you, but I have the following in my "~/.emacs" and it seems to work: (defun occur-shrink-window () "*Shrink the \"*Occur*\" window as much as possible to display its contents." (let ((win (get-buffer-window "*Occur*"))) (when (windowp win) (shrink-window-if-larger-than-buffer win)))) (add-hook 'occur-hook 'occur-shrink-window) _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel