unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: arthur miller <arthur.miller@live.com>
To: "Eduardo Ochs" <eduardoochs@gmail.com>,
	"積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: "38699@debbugs.gnu.org" <38699@debbugs.gnu.org>
Subject: bug#38699: `text-scale-increase', `menu-set-font', and sexps
Date: Wed, 25 Dec 2019 13:33:32 +0000	[thread overview]
Message-ID: <VI1P194MB04292ADF035358E8C4B90BBD96280@VI1P194MB0429.EURP194.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CADs++6j3gY7qzdj-_S-NTPchD2kx=RN2_6FuvcoMGiAwUbYccw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3365 bytes --]

I set my font in after-make-frame hook in init file. I set size, scale and type. It is also possible to set your default font settings with elisp in customize.

There is about a month old Reddit thread in /r/Emacs where both methods are posted with code you can copy-paste to your init file.

Hope it helps.

Merry Christmas!

Skickat från min Samsung Galaxy-smartphone.



-------- Originalmeddelande --------
Från: Eduardo Ochs <eduardoochs@gmail.com>
Datum: 2019-12-24 19:37 (GMT+01:00)
Till: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
Kopia: 38699@debbugs.gnu.org
Ämne: bug#38699: `text-scale-increase', `menu-set-font', and sexps

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.




[-- Attachment #2: Type: text/html, Size: 5353 bytes --]

      reply	other threads:[~2019-12-25 13:33 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     ` bug#38699: `text-scale-increase', `menu-set-font', and sexps Eduardo Ochs
2019-12-25 13:33       ` arthur miller [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1P194MB04292ADF035358E8C4B90BBD96280@VI1P194MB0429.EURP194.PROD.OUTLOOK.COM \
    --to=arthur.miller@live.com \
    --cc=38699@debbugs.gnu.org \
    --cc=eduardoochs@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).