From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: display-buffer-alist actions
Date: Wed, 24 Feb 2021 17:44:20 +0000 [thread overview]
Message-ID: <87sg5lgy2z.fsf@ucl.ac.uk> (raw)
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
next reply other threads:[~2021-02-24 17:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 17:44 Eric S Fraga [this message]
2021-02-24 19:52 ` display-buffer-alist actions 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sg5lgy2z.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.