@@ 1247,6 1247,29 @@ to split windows in a way that is easy to use.
(window-height . fit-window-to-buffer))))
* General window and buffer tweaks
In this section we make use of the ~display-buffer-alist~ to control
the display and placement of buffers in windows. Each section covers
** Focus ~occur~ buffer when it is displayed
Here we are leveraging the powerful ~display-buffer-alist~ to write
rules for what should happen with buffers that are either using (or
derived-from) the ~occur-mode~ OR are named =*Occur...=. The buffer
is displayed below the current window, thus remaining close to its
context, while it automatically gets focus.
'((or . ((derived-mode . occur-mode)
(window-height . fit-window-to-buffer)
(body-function . (lambda (buffer) (select-window buffer)))))
* Load the =emacs-notepad= modules
We define some modules for our Emacs configuration and load them