From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: bookmarks+: how to bind a bookmark to a key Date: Sun, 29 Oct 2017 09:33:51 -0700 (PDT) Message-ID: <338c834f-86dc-4176-81eb-6effae3d02db@default> References: <81mv4ac5c8.fsf@uni-jena.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509294903 29174 195.159.176.226 (29 Oct 2017 16:35:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2017 16:35:03 +0000 (UTC) To: Rainer Thiel , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 29 17:34:56 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8qY2-0006eK-HD for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 17:34:54 +0100 Original-Received: from localhost ([::1]:37072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8qY9-0000my-W7 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 12:35:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8qXb-0000m3-3a for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:34:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8qXY-0005Hk-0Z for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:34:27 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:28375) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8qXX-0005Hd-QY for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:34:23 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v9TGYLGw032061 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Oct 2017 16:34:22 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v9TGYLme016883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 29 Oct 2017 16:34:21 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v9TGYJbO014129; Sun, 29 Oct 2017 16:34:20 GMT In-Reply-To: <81mv4ac5c8.fsf@uni-jena.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114692 Archived-At: > 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. >=20 > 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 "") 'foo)