From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Van L Newsgroups: gmane.emacs.help Subject: Re: Changing font size of all the buffers including the status line and the characters shown in electric-buffer Date: Thu, 11 Oct 2018 00:45:20 +1100 Message-ID: <8C0855A3-E41C-41FD-86E1-5BD9FC3601EB@scratch.space> References: <5782ad06-95db-fd70-4765-ee5645d66ec0@yk.rim.or.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539179214 12580 195.159.176.226 (10 Oct 2018 13:46:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 13:46:54 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 15:46:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAEp4-00038b-D5 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 15:46:46 +0200 Original-Received: from localhost ([::1]:57395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAErA-0006Wq-W4 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 09:48:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAEnv-0004a8-Nf for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 09:45:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAEnq-0003Ij-6m for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 09:45:35 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:52997) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gAEnp-0003GD-M8 for help-gnu-emacs@gnu.org; Wed, 10 Oct 2018 09:45:29 -0400 X-Originating-IP: 220.244.158.222 Original-Received: from epi.local (220-244-158-222.tpgi.com.au [220.244.158.222]) (Authenticated sender: van@scratch.space) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 51C46240005 for ; Wed, 10 Oct 2018 13:45:25 +0000 (UTC) In-Reply-To: <5782ad06-95db-fd70-4765-ee5645d66ec0@yk.rim.or.jp> X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.193 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118241 Archived-At: > Any thoughts/tips? You can try load these functions in your .emacs =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 1 ;; To use: =E2=94=82 2 ;; M-x x-setface-height RET 300 RET =E2=94=82 3 =20 =E2=94=82 4 (defun x-setface-height (number) =E2=94=82 5 "Face height is set to NUMBER." =E2=94=82 6 (interactive "nInsert number: ") =E2=94=82 7 (set-face-attribute 'default (selected-frame) :height = number)) =E2=94=82 8 =20 =E2=94=82 9 (defun set-face-height-360 () =E2=94=82 10 "Set height of face to 360" =E2=94=82 11 (interactive) =E2=94=82 12 (set-face-attribute 'default (selected-frame) :height = 360)) =E2=94=82 13 ;; shortcut key =E2=94=82 14 (global-set-key (kbd "C-c o") 'set-face-height-360) =E2=94=82 15 =20 =E2=94=82 16 (defun set-face-height-720 () =E2=94=82 17 "Set height of face to 720" =E2=94=82 18 (interactive) =E2=94=82 19 (set-face-attribute 'default (selected-frame) :height = 720)) =E2=94=82 20 ;; shortcut key =E2=94=82 21 (global-set-key (kbd "C-c O") 'set-face-height-720) =E2=94=82 22 =20 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > Yes, I agree it is wonderful that one can tweak each font for frame, = buffer, etc. as much as one wants, but there ought to be a single = wrapper that allows one to say, I want all the font to be 150 pixel = height or 1.4 times the current size to move to a new display terminal = with different physical pixel size. Hmm, it DOES sound to be a good = exercise to use X11 resources, but I suspect there are Windows users who = need this global font size change including electric-buffer mode buffer = and status line and so non-X11 solution is preferred. To set the default face height go hunting in=20 M-x customize-group RET faces RET Basic Faces Default Height