unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* display-buffer-alist actions
@ 2021-02-24 17:44 Eric S Fraga
  2021-02-24 19:52 ` Joost Kremers
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Eric S Fraga @ 2021-02-24 17:44 UTC (permalink / raw)
  To: help-gnu-emacs

Hello all,

I've read and re-read the documentation for display-buffer-alist and I
cannot quite understand it.  I have the following, which works:

#+begin_src emacs-lisp
  (setq display-buffer-alist
        '(("^\\*Async Shell Command*" . (display-buffer-no-window))
          ("some regexp that works fine"
           (display-buffer-in-side-window)
           (window-width . 0.28)
           (side . left)
           (slot . 0))))
#+end_src 

I have two monitors, one in landscape for which the above is ideal,
although I do not quite understand it.  I got it from somewhere on the
Interweb...

In any case, my other monitor is portrait and I would rather set the
width and the side to be bottom for windows on that monitor.  Is it
possible to have a conditional of some sort in the list of conses, one
where I would look at the frame width and height?

(I use exwm, by the way.)

Thank you,
eric

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4.4 on Debian bullseye/sid




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-02-26  9:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-24 17:44 display-buffer-alist actions Eric S Fraga
2021-02-24 19:52 ` Joost Kremers
2021-02-24 20:08   ` Joost Kremers
2021-02-24 21:08     ` TRS-80
2021-02-24 20:57   ` Michael Heerdegen
2021-02-25 16:25   ` Eric S Fraga
2021-02-25 20:40     ` Garjola Dindi
2021-02-24 21:15 ` Stefan Monnier
2021-02-25 16:34   ` Eric S Fraga
2021-02-25 16:51     ` Stefan Monnier
2021-02-26  9:43       ` Eric S Fraga
2021-02-25  0:00 ` [External] : " Drew Adams
2021-02-25  4:28   ` Michael Heerdegen
2021-02-25  7:00     ` Drew Adams
2021-02-25 14:26       ` Stefan Monnier
2021-02-25 16:22         ` Drew Adams
2021-02-25 16:36     ` Eric S Fraga
2021-02-25 16:27   ` Eric S Fraga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).