From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: lisp code to use short cuts to launch file Date: Sun, 19 Oct 2008 15:51:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224491551 9745 80.91.229.12 (20 Oct 2008 08:32:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 08:32:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 10:33:33 2008 connect(): Connection refused 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 1Krhu0-0006vi-7t for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 01:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:58970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Krhsv-0007UR-1n for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 19:40:33 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v72g2000hsv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1224456713 1595 127.0.0.1 (19 Oct 2008 22:51:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 19 Oct 2008 22:51:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v72g2000hsv.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163600 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:58937 Archived-At: On Oct 19, 11:22 am, "Graham Smith" wrote: > When I used emacs before, I used some code in .emacs that allowed me > to open a file using a shortcut name, the path and file associated > with the shortcut being set up in .emacs. > > Of course now that I want to use it again, I can't find any reference > to the code I need to use. > > Can someone tell me what it is I need to use. perhaps you mean something like this? ; open my unicode template with F8 key (global-set-key (kbd "") (lambda () (interactive) (find-file "~/my_unicode_template.txt"))) Xah =E2=88=91 http://xahlee.org/ =E2=98=84