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: Set font Date: Tue, 27 Sep 2016 13:57:22 +0200 Message-ID: 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 1474983612 4683 195.159.176.226 (27 Sep 2016 13:40:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 13:40:12 +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:40:03 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 1bosbs-0006xu-L5 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 15:39:48 +0200 Original-Received: from localhost ([::1]:51090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bosbq-0004TQ-TL for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 09:39:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor0z-0001g9-VO for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 07:57:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bor0v-0000pU-LX for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 07:57:37 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.135]:53946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor0v-0000p7-C2 for help-gnu-emacs@gnu.org; Tue, 27 Sep 2016 07:57:33 -0400 Original-Received: from Rainers-MacBook-Pro.local ([88.186.171.7]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MM3G0-1bs7jq0uPk-007o3Y; Tue, 27 Sep 2016 13:57:30 +0200 X-Provags-ID: V03:K0:CT30NGDX0yuLt0I7AL2q+wdKvh9eRG81Vep5kerAI30OWFk9w+/ s5GePZdsx/I8314Pnw1znmoA5lG84QJ8FNpJjp2h0EogJ9YyYB2EP8MV23GGV1HUwb3Lqpa GOIxhYs7+3Qor+lBAxuz63QStPc5/8B+B4fsKIBU7ZWipKJBfTBDuVy0eLR8MWO2EAHdoNH uYIMt5s1q5cedMS6yNQng== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ph6h/gJjtTg=:/FAu573w5VgJa1ifG+REja 1mYc9ZZQ/sBGPc3DNG/9f8T4qq1w2QMNtId9ag0c4pFNXVlM4OXDfCL485obfg6GXQhz1izcK wTcmiGsI4yH+VrHxeJ/AseiY+QvRJwQetoKl9HrtXnwAvPev/pL2yGiI5igpWY+LS4Cq5KrPn IV7WOtQPwYa3pO+d8qRC5I7FwsWWLXBsYYBLCVGVSuVLDay3yu23+l6sHqoNyLaAkWHrtYxUw 9E4YhdjQp7FBPAFBFaTUHFmn3PhJDrh0mI4pUnyNst58IOYVixWz7NgBHOgYLauAPfHywTKAr cKT7MLSnHYRT5naqZ5RjzByFuZgd5N6sX2OknWaZkMny7FWKtrvs6nibcI2cOAlvG3xrv3f3Q BQDWxHlbSkM8+RdmzketqcELYC4uU9E0leTEDEZGNEFnaItJy4n5YqizKHE6IYYuS8jXpeWhZ FMAc71LbLHgK0IE+x6dGyQIKVwztW0tgln0GTauckFuozOfvEIZdKbyJbiqprEMLWPi3DQDhX x28+d0Y8fZxsaxufUhdoacWFuZwY3SZ88Y63lPR1ZEQ61WGAJLl+piLQzmyh5ljGSMH4xwbn4 KwmbQgVfa0lgdtjkCGms9H4RWuj6AMeeMX2PKjkRQlrSYR7iPEPUdnX4RqIYUcXJM77Pb/W4I OJpvpsggcr1QziEnOfhwepAeJcoZQFhBz4R52lUiAeClYPG9pVsw8iCcjxsuFKCJC+1c= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.135 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:111404 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: =2D-8<---------------cut here---------------start------------->8--- (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) =2D-8<---------------cut here---------------end--------------->8--- 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? Thanks, Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJX6l6pAAoJENvXNx4PUvmCx9cIAMxSkf/cSt9EXEK3kr6xsDoy ihkAKy/RTP6xGk18h/4wYzQpb71YKGE50bGbbnEfh1p+YG41zUL9CSZyQ4S0jXU5 zzEaI8Vhz8LUba3JcLKDEHkrODbBjAzQdEc8l6xfU1Fjl2BM6Sd+WuM42LvN23rm hhWNzenYMlXQ3ATvn2jmSXrd9jQKXvDigYL23rxNzH6ELyE/TkFteGADrHFs1HK0 y1Ov/LzuKAq69DaK5RUx81wMuGWyCj5yJLLuS6/F39foonOqC604ETisJBIc/YHp dmHnfXxfUMwmxVG5+tBck30ENac13n+sT6Xcl9SruXjCHiqdEPD541klZKD+6Zg= =u07R -----END PGP SIGNATURE----- --=-=-=--