emacs/var/elfeed/db/data/fe/fe24a4ab938a1292950ee9c423f71efbe4a875e7
2022-01-03 12:49:32 -06:00

1 line
2 KiB
Plaintext

<p><img src="https://thumbnails.lbry.com/-H2nU0rsUMY" width="480" alt="thumbnail" title="Hey Emacs, Don't Move My Windows! - Customizing display-buffer's behavior" /></p>In this video, I'll explain how Emacs' display-buffer function is used to determine which window (or frame!) gets used to display a buffer. This is useful when you want to prevent Emacs from breaking your perfectly-organized window layouts! I'll go through many of the built-in "display action" functions to explain how they work. We'll conclude the video by changing our configuration to prevent popup windows from being created and to cause Org Mode and Help buffers to reuse windows containing other buffers for those modes!<br /><br />Keep an eye out for the next video where we will cover display-buffer-alist and custom display action functions!<br /><br />Show notes: https://github.com/daviwil/emacs-from-scratch/blob/master/show-notes/Emacs-Tips-DisplayBuffer-1.org<br /><br />Chapters<br />0:00 - Intro<br />0:34 - Popup windows are annoying.<br />1:48 - How display-buffer works<br />7:50 - What is an action function?<br />9:47 - A tour of action function parameters<br />16:63 - Examining the default placement actions<br />35:47 - Overriding the default placement actions<br />41:55 - What's next?<br /><br />My Emacs configuration: https://github.com/daviwil/dotfiles/blob/master/Emacs.org<br /><br />If you enjoy this series, please consider becoming a sponsor on GitHub or Patreon:<br /><br />- https://github.com/sponsors/daviwil<br />- https://patreon.com/SystemCrafters<br /><br />You can also leave a tip via PayPal: https://paypal.me/daviwil<br /><br />Follow me on Twitter for more Emacs content!<br />https://twitter.com/SystemCrafters<br /><br />Chat with the System Crafters community on Discord: https://discord.gg/yVD8Gx6<br /><br />Intro music: Coriolis Effect by logos feat. stefsax, licensed CC-BY<br />http://ccmixter.org/files/mseq/26296<br />...<br />https://www.youtube.com/watch?v=-H2nU0rsUMY