help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make `bookmark-jump' use ido?


From: Mathias Dahl
Subject: Re: make `bookmark-jump' use ido?
Date: Mon, 08 May 2006 07:57:42 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

William Xu <william.xwl@gmail.com> writes:

> i noticed that (ido-everywhere 1) has no effect on `bookmark-jump'. Is
> there any easy way(without modifying `bookmark-jump' directly) to make
> `bookmark-jump' use ido?

I use this:

(defun my-switch-to-bookmark (bname)
  "Interactively switch to bookmark as `iswitchb' does."
  (interactive (list (flet ((iswitchb-make-buflist
                             (default)
                             (require 'bookmark)
                             (setq iswitchb-buflist (bookmark-all-names))))
                       (iswitchb-read-buffer "Jump to bookmark: "))))
  (bookmark-jump bname))

I have bound C-x r b to this:

(global-set-key "\C-xrb" 'my-switch-to-bookmark)

It uses `iswitchb' instead of ido but it is probably close enough for
you.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]