From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Visual font looping setup Date: Sat, 21 Nov 2020 09:35:11 +0200 Message-ID: <83ft53yxg0.fsf@gnu.org> References: <83lfevztlq.fsf@gnu.org> <83im9zzs7m.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11163"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 21 08:35:49 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgNQz-0002oS-6z for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 08:35:49 +0100 Original-Received: from localhost ([::1]:39728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgNQy-0004WI-8A for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Nov 2020 02:35:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgNQb-0004W8-04 for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:35:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54546) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgNQZ-0000es-JN for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:35:24 -0500 Original-Received: from [176.228.60.248] (port=2804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kgNQY-0004CT-0D for help-gnu-emacs@gnu.org; Sat, 21 Nov 2020 02:35:22 -0500 In-Reply-To: (message from Jean Louis on Sat, 21 Nov 2020 00:20:22 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125437 Archived-At: > Date: Sat, 21 Nov 2020 00:20:22 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > > emacs -fn FONT-NAME > > Sure it is possible to set it. > > After long time of using some fonts I can see that there is certain > pleasure effect to change the fonts, like relaxation. Process of > selecting various fonts is tedious. Imagine starting emacs with emacs > -fn for 30 times just to see which font is maybe better or not. If you need to do that many times, "M-x set-frame-font RET" is better. > Default font how I see it is always Courier and I wonder why Emacs > selects that one by default. Because that's how Emacs was programmed to work by default, if no other user preferences are found. > On every computer I have that font comes by default. It appears too > small and too tiny to be readable. The font and its default size are two different parameters. You can change the size without changing the font by having in your init file something like (set-face-attribute 'default nil :height 150) or alternatively something like (add-to-list 'default-frame-alist '(font . "...")) where the string which specifies font is constructed from what (face-font 'default) returns, with the pixel-size value (the number after "mono" in the XLFD-formatted font name) replaced by a larger number, as you see fit. > How could I change font only for dired mode? There is no face like > dired-default or similar. See buffer-face-mode. > I can see that fixed-pitch is monospace but Dired is not monospace if > I choose default font that is not monospace. You are well-advised not to pick variable-pitch fonts for any default face in any buffer or mode: they will not work well in Emacs. Where variable-pitch fonts are reasonable, Emacs generally uses them automatically (for example, when displaying Web pages in EWW). You can specify which variable-pitch font to use in those cases by customizing the variable-pitch face. > Somehow I expect to have fixed font in those modes where it is > necesary. Manual says fixed-pitch, I was thinking Dired would use > fixed-pitch settings, but it uses default font as it inherits. Don't change the default face to use a font that is not fixed-pitch, you will be shooting yourself in the foot.