From: Marco Wahl <marcowahlsoft@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing font size of all the buffers including the status line and the characters shown in electric-buffer
Date: Wed, 10 Oct 2018 14:28:26 +0200 [thread overview]
Message-ID: <8436tef0k5.fsf@gmail.com> (raw)
In-Reply-To: mailman.1949.1539171461.1284.help-gnu-emacs@gnu.org
Hi!
"ISHIKAWA,chiaki" <ishikawa@yk.rim.or.jp> writes:
> It is the font size of Emacs. The default is way too small on this 4K
> display and I would like to show the characters and big and
> beautiful. There are times when I want to see as many characters
> possible. But most of the times, I want to see big and crisp
> characters due to my age.
Occasionally I use these functions to increase/decrease the font size in
Emacs and in particular in the modeline.
(defun mw-increase-face-height ()
(interactive)
(let ((before-height (face-attribute 'default :height)))
(cl-loop while (and (< change 42)
(= before-height (face-attribute 'default :height)))
with change = 1
do (progn
(set-face-attribute
'default nil
:height (max 1 (+ before-height change)))
(sit-for 0))
(cl-incf change))
(message "face height: %d" (face-attribute 'default :height))))
(defun mw-decrease-face-height ()
(interactive)
(let ((before-height (face-attribute 'default :height)))
(cl-loop while (and (< change 42) (= before-height (face-attribute 'default :height)))
with change = 1
do (progn
(set-face-attribute
'default nil
:height (max 1 (- before-height change)))
(sit-for 0))
(cl-incf change)))
(message "face height: %d" (face-attribute 'default :height)))
HTH and ciao,
Marco
next parent reply other threads:[~2018-10-10 12:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1949.1539171461.1284.help-gnu-emacs@gnu.org>
2018-10-10 12:28 ` Marco Wahl [this message]
2018-10-10 11:37 Changing font size of all the buffers including the status line and the characters shown in electric-buffer ISHIKAWA,chiaki
2018-10-10 12:06 ` Tak Kunihiro
2018-10-10 12:23 ` Kaushal Modi
2018-10-10 13:45 ` Van L
2018-10-10 17:40 ` ISHIKAWA,chiaki
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=8436tef0k5.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--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.