From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Using Variable Width Fonts for org-mode and Fixed WidthforTablesss Date: Wed, 02 Oct 2013 11:34:38 +0100 Message-ID: <524BF6BE.9060002@wilkesley.net> References: <52443BF4.5070609@wilkesley.net> <524BD924.1010300@wilkesley.net> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRJlW-0008DM-Az for emacs-orgmode@gnu.org; Wed, 02 Oct 2013 06:34:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRJlQ-0000Y2-Ma for emacs-orgmode@gnu.org; Wed, 02 Oct 2013 06:34:46 -0400 Received: from mail2.wilkesley.net ([109.74.196.44]:41385 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRJlQ-0000XL-Hr for emacs-orgmode@gnu.org; Wed, 02 Oct 2013 06:34:40 -0400 Received: from scamper2.bantercat.co.uk (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 6252FA8004 for ; Wed, 2 Oct 2013 11:34:39 +0100 (BST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 02/10/13 10:10, Alan Schmitt wrote: > Hi Ian, > > lists@wilkesley.net writes: > ur help. >> That sort of works. The fonts in org-table, etc are fixed pitch as >> expected. However, I seem unable to set a variable width font using >> text-mode-hook. Whatever font I choose Emacs ends up using DejaVu Sans >> Mono. > > Is it because the "variable-pitch-mode" is not set, or because the face > associated with it is not applied? What happens when you do a "M-x > variable-pitch-mode"? > > Alan > Aha! As you suggest variable-pitch-mode isn't being set. Doing an "M-x variable-pitch-mode" sets the font correctly. So either text-mode-hook isn't being called, or something is resetting it. [Time passes...] Just had a look through my .emacs and I was using text-mode-hook later on to turn on autofill. So problem solved, thanks very much for your help. Ian.