From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: text-scale-mode and switching major modes Date: Fri, 6 Jan 2012 09:10:10 -0800 Message-ID: <7657D9B3D1F14A0C92E8FE77E8AC3349@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325869829 15830 80.91.229.12 (6 Jan 2012 17:10:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2012 17:10:29 +0000 (UTC) To: "'Titus von der Malsburg'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 06 18:10:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjDJA-0006B8-I9 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 18:10:24 +0100 Original-Received: from localhost ([::1]:44748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjDJ9-0005ll-GE for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jan 2012 12:10:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjDJ4-0005lR-O6 for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 12:10:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjDJ3-0004po-DN for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 12:10:18 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:54990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjDJ3-0004pk-5A for help-gnu-emacs@gnu.org; Fri, 06 Jan 2012 12:10:17 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q06HAEFj017918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jan 2012 17:10:15 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q06HAEUf026769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Jan 2012 17:10:14 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q06HAD03029809; Fri, 6 Jan 2012 11:10:14 -0600 Original-Received: from dradamslap1 (/10.159.38.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Jan 2012 09:10:13 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AczMlNgeeplfMkDUTZa+oCqVgSv2OAAADpYg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4F072AF7.00DA,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:83380 Archived-At: > I use noweb-mode a lot. This mode allows to have several languages in > one file (e.g. latex and R) and switch major modes automatically > depending on where the cursor is -- very useful! However, every time > modes are switched the font size (which I set with text-scale-adjust) > changes back to the default. Is there a way to make the font size > persistent? > > Note that I'd like to use different font sizes in > different buffers, so setting the default font size a specific value > is not a solution. AFAIK, text scaling is on a per-buffer basis. You could perhaps implement a workaround for your problem using `(after-)change-major-mode-hook'. Another thing you could do, but which goes against your last sentence, is to zoom the frame (yes, change its default font size) instead of scaling the text of various buffers. See http://www.emacswiki.org/emacs/SetFonts#toc6 and http://www.emacswiki.org/emacs/download/zoom-frm.el.