From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Jamie Beardslee <beardsleejamie@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Add user option to disable location in bookmarks
Date: Sun, 21 Jun 2020 10:56:44 +0100 [thread overview]
Message-ID: <87a70wkahv.fsf@tcd.ie> (raw)
In-Reply-To: <87r1u9mfo0.fsf@gmail.com> (Jamie Beardslee's message of "Sun, 21 Jun 2020 12:22:07 +1200")
Jamie Beardslee <beardsleejamie@gmail.com> writes:
> (defun save-place--setup-hooks (add)
> (cond
> (add
> (add-hook 'find-file-hook #'save-place-find-file-hook t)
> + (eval-after-load "bookmark"
> + '(add-hook 'bookmark-after-jump-hook #'save-place-bookmark-hook t))
with-eval-after-load is preferred to eval-after-load, but is it
necessary? add-hook knows how to deal with as of yet undefined hook
variables.
> (add-hook 'dired-initial-position-hook #'save-place-dired-hook)
> (unless noninteractive
> (add-hook 'kill-emacs-hook #'save-place-kill-emacs-hook))
> @@ -334,6 +344,10 @@ save-place-find-file-hook
> ;; and make sure it will be saved again for later
> (setq save-place-mode t)))))
--
Basil
next prev parent reply other threads:[~2020-06-21 9:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-20 19:27 [PATCH] Add user option to disable location in bookmarks Jamie Beardslee
2020-06-20 21:35 ` Drew Adams
2020-06-20 22:24 ` Jamie Beardslee
2020-06-20 22:50 ` Stefan Monnier
2020-06-20 23:37 ` Drew Adams
2020-06-20 23:34 ` Drew Adams
2020-06-21 0:22 ` Jamie Beardslee
2020-06-21 5:19 ` Drew Adams
2020-06-21 9:56 ` Basil L. Contovounesios [this message]
2020-06-21 9:13 ` Yuri Khan
2020-06-21 18:44 ` Drew Adams
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=87a70wkahv.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=beardsleejamie@gmail.com \
--cc=emacs-devel@gnu.org \
/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.