all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Rainer Thiel <r.thiel@uni-jena.de>, help-gnu-emacs@gnu.org
Subject: RE: bookmarks+: how to bind a bookmark to a key
Date: Sun, 29 Oct 2017 09:33:51 -0700 (PDT)	[thread overview]
Message-ID: <338c834f-86dc-4176-81eb-6effae3d02db@default> (raw)
In-Reply-To: <81mv4ac5c8.fsf@uni-jena.de>

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



      reply	other threads:[~2017-10-29 16:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 15:59 bookmarks+: how to bind a bookmark to a key Rainer Thiel
2017-10-29 16:33 ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=338c834f-86dc-4176-81eb-6effae3d02db@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=r.thiel@uni-jena.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.