From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Key binding? in Auctex (LaTex-mode) Date: Tue, 23 Aug 2011 14:19:23 +0800 Message-ID: <87obzgejkk.fsf@ericabrahamsen.net> References: <32315986.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314080390 18002 80.91.229.12 (23 Aug 2011 06:19:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 06:19:50 +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 Aug 23 08:19:46 2011 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 1QvkKw-0005Jo-Be for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 08:19:46 +0200 Original-Received: from localhost ([::1]:32951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvkKv-00077x-PV for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 02:19:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvkKr-00077s-7O for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:19:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvkKq-0002qr-Ac for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:19:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvkKq-0002qj-32 for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:19:40 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QvkKn-0005HR-KW for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 08:19:37 +0200 Original-Received: from 117.128.169.249 ([117.128.169.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 08:19:37 +0200 Original-Received: from eric by 117.128.169.249 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 08:19:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 117.128.169.249 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:Nis6MCj0hbCdHK4+yxqyEtR7T84= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82022 Archived-At: On Tue, Aug 23 2011, spinner wrote: > I want to regularly insert the following code into documents that I write in > LaTex-mode via Auctex: > > %%% Local Variables: > %%% mode: LaTeX > %%% TeX-master: t > %%% End: > > Since I need to do this regularly, I want to do this with something like key > binding. But I don't know if what I want to do is key binding (like C-c > C-f), a macro, or something else. Section 6 of the Autotyping manual shows how to automatically insert template-like text in empty files based on major mode or file name.