From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eddie Newsgroups: gmane.emacs.help Subject: Changing the default font on the fly Date: Sat, 23 Jun 2012 17:18:12 -0400 Message-ID: <20120623171812.26a1fce1@mageiahp> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340486307 31388 80.91.229.3 (23 Jun 2012 21:18:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 21:18:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 23 23:18:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SiXir-0002gY-85 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 23:18:25 +0200 Original-Received: from localhost ([::1]:58551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiXir-000263-69 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jun 2012 17:18:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiXik-00023A-51 for help-gnu-emacs@gnu.org; Sat, 23 Jun 2012 17:18:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiXii-0004XT-Ml for help-gnu-emacs@gnu.org; Sat, 23 Jun 2012 17:18:17 -0400 Original-Received: from a2s58.a2hosting.com ([216.119.132.130]:54788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiXii-0004XE-IS for help-gnu-emacs@gnu.org; Sat, 23 Jun 2012 17:18:16 -0400 Original-Received: from c-24-147-32-146.hsd1.nh.comcast.net ([24.147.32.146] helo=mageiahp) by a2s58.a2hosting.com with esmtpa (Exim 4.69) (envelope-from ) id 1SiXif-000qlK-JG for help-gnu-emacs@gnu.org; Sat, 23 Jun 2012 17:18:13 -0400 In-Reply-To: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i486-pc-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s58.a2hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - almostconnecticut.net X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-Received-From: 216.119.132.130 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85397 Archived-At: The default font in my Emacs 23.3 (various Linux installations) is DejaVu Sans Mono Book 11. That's perfect for the calendar and my phone book, etc. if I want to do some longer writing in a more readable font, I can use the menu and go Options | Set Default Font | nibble through the various choices. But I'd rather not use the menu. I would like to get a hunk of code that is the functional equivalent to Options | Set Default Font | Droid Sans Regular 12. I don't know how to accomplish this on my own (I'm primarily a writer and editor, and I've never demonstrated any talent for programming), nor have I found any examples online that I could modify for my own uses. And from there I would like to assign that hunk of code to a keystroke series. I've assigned some macros to keystrokes, so I think I can do that part. Any suggestions would be gratefully appreciated.