From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vagn Johansen Newsgroups: gmane.emacs.help Subject: Re: LaTeX templates (or just templates in general) Date: Sat, 16 May 2009 19:43:10 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242499252 23727 80.91.229.12 (16 May 2009 18:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 18:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 16 20:40:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5OoP-0006r0-Kf for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 20:40:45 +0200 Original-Received: from localhost ([127.0.0.1]:40382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5OoP-0003iZ-0X for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 14:40:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Cancel-Lock: sha1:2Nkv0oUbguQhFtZRhVh+VSB7Dlc= Original-Lines: 25 Original-NNTP-Posting-Host: 80.72.152.135 Original-X-Trace: news.sunsite.dk DXC=ChVLW4_O5ZU5LoVIWDNeH\YSB=nbEKnk[9KI=c`M<`][1]Odi5o\aCSgNbeFAXTM>UiA<6@6EFd>_PYN2nNB6FPZckMQNXiBZQT Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:169240 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64501 Archived-At: Orri writes: > I am rather new to emacs. > > I have used the editor TextMate on mac and it has a very nice feature I like > and was wondering how I can acheive a similar thing in emacs. > > When I am in latex mode in textmate and write temp[tabkey], I can choose > from a list of code segments to insert to the current file (or buffer). I > often use this to insert frequently used code segments (3-10 lines) to > achieve tasks I frequently do. These segments are stored in a folder named > ~/Library/Applications Support/LaTeX/Templates http://www.emacswiki.org/emacs/CategoryTemplates I would suggest yasnippet for people new to Emacs http://code.google.com/p/yasnippet/ It uses one file per template. It currently only has one latex-mode template. -- Vagn Johansen