[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lisp code to use short cuts to launch file
From: |
Xah |
Subject: |
Re: lisp code to use short cuts to launch file |
Date: |
Sun, 19 Oct 2008 15:51:53 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Oct 19, 11:22 am, "Graham Smith" <myotis...@gmail.com> 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 "<f8>")
(lambda () (interactive) (find-file "~/my_unicode_template.txt")))
Xah
∑ http://xahlee.org/
☄