From: Eduardo Ochs <eduardoochs@gmail.com>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 38699@debbugs.gnu.org
Subject: bug#38699: `text-scale-increase', `menu-set-font', and sexps
Date: Tue, 24 Dec 2019 15:36:02 -0300 [thread overview]
Message-ID: <CADs++6j3gY7qzdj-_S-NTPchD2kx=RN2_6FuvcoMGiAwUbYccw@mail.gmail.com> (raw)
In-Reply-To: <87bls1ur4a.5.fsf@jidanni.org>
Hi all,
Let me take Dan Jacobson's proposal one step further. I changed the
subject of the thread, so here is a link to his message:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-12/msg00897.html
I use a laptop with a screen resolution that is low compared to modern
standards - 1280x800 - and because of that I prefer to choose my Emacs
fonts by hand from the ones listed by:
xlsfonts | grep -v ^- | sort | uniq
When I want to change to another font I usually run `M-x font', that
displays a temporary buffer with the sexps below (plus some cruft):
(set-frame-font "5x7")
(set-frame-font "fixed")
(set-frame-font "6x13")
(set-frame-font "9x15")
(set-frame-font "10x20")
(set-frame-font "Monospace 7")
(set-frame-font "Monospace 9")
(set-frame-font "Monospace 10")
(set-frame-font "Monospace 11")
(set-frame-font "Monospace 12")
(set-frame-font "Monospace 22")
and I choose a font, or try the fonts, from there by typing `M-e' on a
sexp; my `M-e' is roughly equivalent `C-e C-x C-e'.
I spent about one hour playing with the functions in
lisp/face-remap.el - `text-scale-increase' and friends - a few days
ago, but I didn't get very far...
Please, please, PLEASE, make them more hacker-friendly! AFAICT the
current comments in lisp/face-remap.el don't even say how we can play
with `face-remapping-alist' in low-level ways...
By the way, I just played a bit with the source code of
`menu-set-font' at
(describe-function 'menu-set-font)
using this,
(fboundp 'x-select-font)
(setq myfont (x-select-font))
(setq myfont (mouse-select-font))
myfont
and I realized that I don't know how to convert the value of myfont -
a #<font-spec ...> thing - into something that has a read-able syntax.
Hints very welcome, and sorry if this is something that everybody is
supposed to know =).
Cheers & thanks in advance,
Eduardo Ochs
http://angg.twu.net/#eev
http://angg.twu.net/emacsconf2019.html
http://angg.twu.net/e/emacs.e.html#menu-set-font
http://angg.twu.net/e/emacs.e.html#text-scale-increase
On Sat, 21 Dec 2019 at 21:44, 積丹尼 Dan Jacobson <jidanni@jidanni.org> wrote:
>
> >>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
>
> EZ> There are: "C-x C-+" and "C-x C--". In Emacs 27, there's also
> EZ> C-wheel-up and C-wheel-down.
>
> OK very good.
> Problem is: User uses it. Says "Ah, now I've got it perfect."
> But there is no additional command to spit out some lisp that he can
> paste in his .emacs file to make his changes permanent to the next
> session.
>
> No consideration is made that the user might want to save his changes.
next prev parent reply other threads:[~2019-12-24 18:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 23:59 bug#38699: Simple keystrokes to change font size 積丹尼 Dan Jacobson
2019-12-21 14:21 ` Eli Zaretskii
2019-12-22 0:43 ` 積丹尼 Dan Jacobson
2019-12-22 17:09 ` Eli Zaretskii
2019-12-23 0:28 ` 積丹尼 Dan Jacobson
2019-12-23 3:28 ` Eli Zaretskii
2019-12-23 3:35 ` 積丹尼 Dan Jacobson
2019-12-24 18:36 ` Eduardo Ochs [this message]
2019-12-25 13:33 ` bug#38699: `text-scale-increase', `menu-set-font', and sexps arthur miller
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='CADs++6j3gY7qzdj-_S-NTPchD2kx=RN2_6FuvcoMGiAwUbYccw@mail.gmail.com' \
--to=eduardoochs@gmail.com \
--cc=38699@debbugs.gnu.org \
--cc=jidanni@jidanni.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.