Compare commits

...

3 Commits

1 changed files with 16 additions and 11 deletions

View File

@ -260,7 +260,9 @@ of [[info:emacs#Saving Customizations][saving customizations (info)]].
url-cookie-untrusted-urls '(".*")
use-dialog-box nil
use-short-answers t
view-read-only t)
view-read-only t
;; Suppress the missing lexical-binding cookie warnings.
warning-suppress-log-types '((lexical-binding)))
#+end_src
#+caption[Set the second set of Emacs options: pin packages to archives]:
@ -620,6 +622,10 @@ verse and quote blocks are fontified using the `org-verse' and
Mickey Peterson's post [[https://www.masteringemacs.org/article/demystifying-emacs-window-manager][Demystifying Emacs's Window Manager]] invites to improve
window placement. Listing [[lst:1st-window-management]], [[lst:2nd-window-management]]
and [[lst:3rd-window-management]] implement a selection of his recommendations.
See:
1. [[info:elisp#The Zen of Buffer Display][The Zen of Buffer Display (info)]]
2. [[https://e17i.github.io/articles-emacs-display-1/][Configuring the Emacs display system]]
for technical information.
#+caption[Window management functions and key bindings]:
#+caption: Window management functions and key bindings.
@ -668,24 +674,23 @@ and [[lst:3rd-window-management]] implement a selection of his recommendations.
#+caption[Window management variables]:
#+caption: Window management variables.
#+name: lst:3rd-window-management
#+begin_src emacs-lisp -n
#+begin_src emacs-lisp -n :results none
(with-eval-after-load 'emacs
;; https://www.masteringemacs.org/article/demystifying-emacs-window-manager
;; GAV: `display-buffer-alist' fails to set the *Warnings* buffer position.
(setopt switch-to-buffer-obey-display-actions t)
(add-to-list 'display-buffer-alist
`(,(rx (or "*Apropos*"
"*Dictionary*"
"*Help*"
"*info"))
`(,(rx (or "*Apropos*" "*Dictionary*" "*Help*" "*info"))
(display-buffer-reuse-window display-buffer-pop-up-window)
(inhibit-same-window . nil)))
(add-to-list 'display-buffer-alist
`(,(rx (or "*Occur*"
"*grep*"
"*xref*"))
`(,(rx (or "*Occur*" "*grep*" "*xref*"))
display-buffer-reuse-window
(inhibit-same-window . nil)))
;; Handling the *Warnings* buffer like the *compilation* buffer also fails.
;; BUG#70773: Eli tells `(setq delayed-warnings-hook nil)' is better.
(add-to-list 'display-buffer-alist
'("\\*compilation\\*"
`(,(rx (or "*compilation*"))
display-buffer-no-window
(allow-no-window . t))))
#+end_src
@ -7256,7 +7261,7 @@ for ~mpv~ while eliminating use of ~mpd~.
(no-littering-expand-etc-file-name "emms/streams.emms"))))
#+end_src
*** Hiding spurious buffers
*** Hiding spurious buffers :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:hiding-spurious-buffers
:END: