From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Add items to TeX-font-list Date: Fri, 07 Feb 2003 18:19:30 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84adh8huu5.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044638495 5298 80.91.224.249 (7 Feb 2003 17:21:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 17:21:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hCBG-0001Jm-00 for ; Fri, 07 Feb 2003 18:20:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hCBN-0000pL-03 for gnu-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 12:20:57 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!fu-berlin.de!uni-berlin.de!pd951f1c2.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: pd951f1c2.dip.t-dialin.net (217.81.241.194) Original-X-Trace: fu-berlin.de 1044638392 41145161 217.81.241.194 (16 [73968]) User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 Cancel-Lock: sha1:+9AthnDehGOMPGB4TFPNTFBADco= Original-Xref: shelby.stanford.edu gnu.emacs.help:109917 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6421 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6421 I have a document where it is convenient to add some items to TeX-font-list. Is there a way to do this for a document (which may consist of more than one file)? I've tried to add `eval' entries in a Local Variables block in the master file which do (add-to-list 'TeX-font-list ...). My document does \usepackage{nifty-macros} (where the nifty-macros.sty for the most part consists of kludgy macros), so I created a file style/nifty-macros.el which does (TeX-add-style-hook "kg-thesis-macros" (lambda () (add-to-list 'TeX-font-list (list ?d "\\DefTerm{" "}")))) amongst other things. Actually, the lambda contains more statements, so I'm sure that it is executed. But the only thing that works, in the end, is to add a Local Variables block to each file. But I would prefer something which works on a per-document basis. Ideas? -- A turnip curses Elvis