* Define key for bookmark-jump
@ 2007-08-22 22:40 Fabian Braennstroem
2007-08-23 18:45 ` Emilio Lopes
0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2007-08-22 22:40 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I would like to define a key for different bookmark-jumps;
mainly I will use them to jump to different directories in
dired:
e.g. I would like to set key '1' to jump to bookmark with
'bookmark_name':
(local-set-key "1" 'bookmark-jump "bookmark_name")
but the above does not work ... actually I have no idea
about the needed syntax. It would be nice, if someone could
help!?
Regards!
Fabian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Define key for bookmark-jump
2007-08-22 22:40 Define key for bookmark-jump Fabian Braennstroem
@ 2007-08-23 18:45 ` Emilio Lopes
2007-08-23 21:40 ` Fabian Braennstroem
0 siblings, 1 reply; 3+ messages in thread
From: Emilio Lopes @ 2007-08-23 18:45 UTC (permalink / raw)
To: help-gnu-emacs
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")))
--
Emílio C. Lopes
Munich, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Define key for bookmark-jump
2007-08-23 18:45 ` Emilio Lopes
@ 2007-08-23 21:40 ` Fabian Braennstroem
0 siblings, 0 replies; 3+ messages in thread
From: Fabian Braennstroem @ 2007-08-23 21:40 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-23 21:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 22:40 Define key for bookmark-jump Fabian Braennstroem
2007-08-23 18:45 ` Emilio Lopes
2007-08-23 21:40 ` Fabian Braennstroem
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).