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
> 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
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