From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Haines Brown Newsgroups: gmane.emacs.help Subject: Re: setting default font name Date: Tue, 20 May 2014 06:58:28 -0400 Message-ID: <87lhtwd8dn.fsf@bach.histomat.net> References: <87egzrz5c2.fsf@bach.histomat.net> <87a9aezt9m.fsf@bach.histomat.net> <87y4xyc9ee.fsf@bach.histomat.net> <87tx8ldd20.fsf@bach.histomat.net> <87ppj9d2d7.fsf@bach.histomat.net> <1e61215b-c57b-45f6-89bc-7f899c748425@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1400583632 8918 80.91.229.3 (20 May 2014 11:00:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2014 11:00:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 13:00:23 2014 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 1WmhmO-0004I8-Dl for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2014 13:00:20 +0200 Original-Received: from localhost ([::1]:52396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmhmO-00087J-2l for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2014 07:00:20 -0400 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!border3.nntp.dca.giganews.com!backlog3.nntp.dca3.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 20 May 2014 05:58:28 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:XhtfxCUQNxJGOa6cn4KVrkgDyg4= Original-Lines: 39 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-QlBsNxyNNYBuMzfY158HNtxlDXkwVKGeAOiFwqA/2L0FbDxfgQ6e50Jyf/lVLC4Gr4GyP5A7GIe6CDa!r7xi2sxz79v6BU5fL29A4uMwGrtv0tgmqi143zVv42EJ65sQbovuVulTp6M= Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2913 Original-Xref: usenet.stanford.edu gnu.emacs.help:205498 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:97767 Archived-At: Jacob Gerlach writes: > At risk of showing my ignorance, I use a simpler syntax from the emacs wiki > (http://www.emacswiki.org/emacs/SetFonts#toc2) to set my font. In .emacs: > > (set-frame-font "DejaVu Sans Mono-12") My impression is that set-frame-font does something different than set-frame-attribute, set-default-font, or custom-set-faces. I was unclear about the differences and so stuck with custom-set-faces, for it turns out to work. > I don't have bitstream courier installed, so I couldn't test this for your > font, but I would assume the equivalent line for you would be something > like > > (set-frame-font "Bitstream Courier-10") This produces font not found error message. I finally am able to open an emacs session that relies on a custom init file using the -q -l options by setting the font in a session that is started without the -q option, and then save that font to its init file. Then I can copy that material to the init file used with the -q option. This is what is not working: (custom-set-faces '(default ((t (:family "Courier 10 Pitch" \ :foundry "bitstream" :slant normal :weight normal :height 113 \ :width normal))))) I found I could simplify this to: (custom-set-faces '(default ((t (:family "Courier 10 Pitch"))))) Haines