[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Define key for bookmark-jump
From: |
Fabian Braennstroem |
Subject: |
Re: Define key for bookmark-jump |
Date: |
Thu, 23 Aug 2007 21:40:09 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 |
Hi Emilio,
Emilio Lopes schrieb am 08/23/2007 06:45 PM:
> Fabian Braennstroem writes:
>
>> e.g. I would like to set key '1' to jump to bookmark with
>> 'bookmark_name':
>
>> (local-set-key "1" 'bookmark-jump "bookmark_name")
>
> Achtung, untested:
>
> (define-key dired-mode-map "1"
> (lambda ()
> (interactive)
> (bookmark-jump "bookmark name")))
Simple enough and much faster than using a macro :-) Thanks!
Regards!
Fabian