* 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.