From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.help Subject: Re: Set font Date: Tue, 27 Sep 2016 14:02:34 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1474983161 2352 195.159.176.226 (27 Sep 2016 13:32:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 13:32:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 15:32:32 2016 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 1bosUk-0007Pc-Ur for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 15:32:27 +0200 Original-Received: from localhost ([::1]:51028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bosUj-00057w-8s for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 09:32:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor5u-0000Wr-KZ for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:02:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bor5q-0002ar-3r for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:02:42 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:56099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor5p-0002aB-Qk for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:02:38 -0400 Original-Received: from Rainers-MacBook-Pro.local ([88.186.171.7]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0M323z-1ayway2jXb-00sw8z; Tue, 27 Sep 2016 14:02:35 +0200 In-Reply-To: (Rainer M. Krug's message of "Tue, 27 Sep 2016 13:57:22 +0200") X-Provags-ID: V03:K0:095Vsq2bJLGAtbXK3XX8fxoF1vFhWQ5Kmi6JbNzpSiRhI5QF/xW uLZsnyy7I+By/W6b7ASqJKuX6hX8/gZnJxr2q8zz1i7OAuIrECHZQ/NXQ/CEsjuED+xsLoL Cdf58HsLijDl6ng1ps6lTKH2TKpfjg2GYYYNp9xJNrnvNy7Z2gE98nLq8Nmudcrzo3tOj4l XPitVZs/lJIjM3LB6kynA== X-UI-Out-Filterresults: notjunk:1;V01:K0:60u5KE6Eu9E=:bF6gohIVQQY3Vj7ZlhK7HE CxXPosHJmJnU9Iu7QovqrbcHwrXZDRcHutJVcTc6IoN3kqgEeFJXcbW/1XaJiWib1tAPk/OAD rvrd8MMHnIpc7UWjhWUa9P2oDBJ7PRu75ab0UxqHIISdgmYl5XYMxv10aQqnHimswfwuAHoi9 V0WwfvZavEyCr1GYXkk+u12vTh5lVFiGn/dU1efFsLaGNlcfbnwD/Vmd3zloynXTzbmlwCBEk spsqmsj3ABMUNaNZllW2txhSiu7c8nPhha0ZgrQN6iQLNdXR25l52hdmObIqpLMwojvHOSYhV MfBvHIox2JXAp7qPhqRY2AIOxKGCH5E7izrfM1WpK0vkgpqz5I93to/BZn0Q/TiLxJSl0wGLu C58M/jqwh1w6jI9s2FAb3Ye+3TzSQ3M8rbNsXfjUaGxgSSPuGuBYbdWMI44AQqGWQ2SFffALx CpCipJiB8p0B0s4merf8FT9Exuc0yqycwsqoMevYmQe/9Br5a3gUzd4rmmJGn+iB1v2S6kEWq S50Ph+Ir53IeN+k6BSURmH0Z0wSWv2nMM2/3Ya0RI8IAQuH8C11Fm/cmygXK0KcEmtHlAoXwI c6nPLOxivR2gjQqlGNxRzkf2UQtlCihhGl/adP+axl3KKbdJpr3Q88mYlhfx9OeZpWN6Tecz3 gzTZ1gxDExGJabQzuJBQaIMNtyIfiYthT6KHrxYc5XwtwgjoEVd62oI+9OC7AlUg1nKE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 X-Mailman-Approved-At: Tue, 27 Sep 2016 09:31:07 -0400 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:111403 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Rainer M Krug writes: > Hi > > I would like to set the font for all source code editing modes to a > specific font (Monoid https://larsenwork.com/monoid/ ). I have defined a > function rmk/set-font-to-programming-font which sets the font and also > have added this function to the ess-mode-hook: > > (defun rmk/set-font-to-programming-font () > "Change font in current window to a monospaced font." > (interactive) > (set-frame-font "Monoid-12" nil t)) > > (add-hook 'ess-mode-hook 'rmk/set-programming-font) > > Now what is the easiest to use this font for all source languages > (emacs-lisp-mode, c-mode, c++-mode, ...)? Do I have to add to all of > them the function to the hook, or is there an easier approach which > sets the font for all these languages? And I just realized - the font stays when I switch back to another buffer - but I only want to have it on specific buffers - how can I do this? > > Thanks, > > Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJX6l/aAAoJENvXNx4PUvmCP1UIAOcOsmCbZELrDKmCJNpuRQqN LekNwf67SZCqHaMyRPoEaSGovmeOL4s1AE3PLpNfUgLZnZFDoVND94NLMmQC59jo w0Ex3WWxmLl5mElsZRYBrlCs4DPz2QXjYjiB9b23u02isHTu48FLnU54TvcTlENW +lufaUcnE6IDIWQ6O3iCRxwGmbk5JNcqhAA5uq71acei7qCFbd2NOdatGeTc8EVJ fAPOPY1xmGbM0EddVByZobZvH9PgqDfDI67srszFDo5VhZAgrImvdu9V+y8Aphlr S25vyNjS11i9zcBLFpkbjuDBWtQBHsZyOaZxWkTAvaazpL7gpj6/NY5GJcp+dCg= =AHe6 -----END PGP SIGNATURE----- --=-=-=--