From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Orri Newsgroups: gmane.emacs.help Subject: LaTeX templates (or just templates in general) Date: Fri, 15 May 2009 22:56:26 -0700 (PDT) Message-ID: <23570689.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242453809 2209 80.91.229.12 (16 May 2009 06:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 06:03:29 +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 08:03:22 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 1M5CzQ-0000BU-MU for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 08:03:20 +0200 Original-Received: from localhost ([127.0.0.1]:50085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5CzP-00072E-TM for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 02:03:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5Css-0004no-TM for help-gnu-emacs@gnu.org; Sat, 16 May 2009 01:56:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5Csn-0004mz-P6 for Help-gnu-emacs@gnu.org; Sat, 16 May 2009 01:56:34 -0400 Original-Received: from [199.232.76.173] (port=59033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5Csn-0004mw-Ji for Help-gnu-emacs@gnu.org; Sat, 16 May 2009 01:56:29 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:37466) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5Csn-0005vw-53 for Help-gnu-emacs@gnu.org; Sat, 16 May 2009 01:56:29 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M5Csk-0002Lp-Qn for Help-gnu-emacs@gnu.org; Fri, 15 May 2009 22:56:26 -0700 X-Nabble-From: orritomasson@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 16 May 2009 02:02:58 -0400 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:64483 Archived-At: 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 (code to insert a figure with caption). These segments are stored in a folder named ~/Library/Applications Support/LaTeX/Templates I know I can use [C-x i], But it takes so much time to write the correct path every single time. So I am looking for something like [C-x i] except it by default starts in specified directory (rather than the current directory). I know I can of course, in every latex project directory specify a symbolic link (with a short name) to this directory, but I find it to be too much of dirty hack. Does anyone have any suggestions about how to acieve this? -- View this message in context: http://www.nabble.com/LaTeX-templates-%28or-just-templates-in-general%29-tp23570689p23570689.html Sent from the Emacs - Help mailing list archive at Nabble.com.