unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* bookmarks+: how to bind a bookmark to a key
@ 2017-10-29 15:59 Rainer Thiel
  2017-10-29 16:33 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Thiel @ 2017-10-29 15:59 UTC (permalink / raw)
  To: help-gnu-emacs

I write my lectures with Emacs to be compiled with XeLaTeX, and I like
using bookmarks+.  I regularly give the bookmark name 'vorl-akt' to the
current position in the current lecture.  How can I bind that bookmark
to a key?  I should like to start Emacs and press F11 to find the file
and go to the position bookmarked.

Can someone please help me how to do that, or point me to a text that
explains it?  I am sure a close reading of the manual would tell me a
way how to do it, but you all know that reading complex manuals is a
time consuming task, and I assume others already know how to do it and
can explain it in two minutes.

Many thanks in advance

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de




^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: bookmarks+: how to bind a bookmark to a key
  2017-10-29 15:59 bookmarks+: how to bind a bookmark to a key Rainer Thiel
@ 2017-10-29 16:33 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2017-10-29 16:33 UTC (permalink / raw)
  To: Rainer Thiel, help-gnu-emacs

> I write my lectures with Emacs to be compiled with XeLaTeX, and I like
> using bookmarks+.  I regularly give the bookmark name 'vorl-akt' to the
> current position in the current lecture.  How can I bind that bookmark
> to a key?  I should like to start Emacs and press F11 to find the file
> and go to the position bookmarked.
> 
> Can someone please help me how to do that, or point me to a text that
> explains it?  I am sure a close reading of the manual would tell me a
> way how to do it, but you all know that reading complex manuals is a
> time consuming task, and I assume others already know how to do it and
> can explain it in two minutes.

(defun foo ()
  "..."
  (interactive)
  (bookmark-jump-other-window "vorl-akt"))

Or just `bookmark-jump', if you want it visited in
the same window.

(global-set-key (kbd "<f11>") 'foo)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-29 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-29 15:59 bookmarks+: how to bind a bookmark to a key Rainer Thiel
2017-10-29 16:33 ` Drew Adams

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