unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emilio Lopes <eclig@gmx.net>
Subject: Re: find-file + bookmarks = true? (was: find-file, default path)
Date: Wed, 20 Jul 2005 10:54:23 +0000 (UTC)	[thread overview]
Message-ID: <loom.20050720T124356-57@post.gmane.org> (raw)
In-Reply-To: upsteotfk.fsf_-_@gmail.com

Mathias Dahl <brakjoller <at> gmail.com> writes:

> Kevin Rodgers <ihs_4664 <at> yahoo.com> writes:
> 
> > If typing that directory name even once is too much, try setting an
> > environment variable to it so you can reference it: C-x C-f
> > $CERTAIN_DIR <tab>
> 
> [...]
> Anyone else doing the same thinking? It would have been really cool to
> have something like this. Maybe some "magical" character that
> `find-file' reacts to and switch to using bookmarks, or something like
> that.

I like the "named dirs" feature of ZSH (http://www.zsh.org).  You can given a
directory a name using the `hash' command, like this:

   % hash -d emacs-cvs=/home/ecl/Emacs/emacs-cvs

Later you can switch to that directory by using:

   % cd ~emacs-cvs

But note that bookmarks can have more complicated names, which might contain
spaces.

Maybe also of interest:

;; From http://www.emacswiki.org/cgi-bin/wiki.pl/GraphicalBookmarkJump
(defun iswitchb-bookmark-jump (bname)
  "*Switch to bookmark interactively using `iswitchb'."
  (interactive 
   (list
    (flet
        ((iswitchb-make-buflist (default)
                                (require 'bookmark)
                                (setq iswitchb-buflist (bookmark-all-names))))
           (iswitchb-read-buffer "Jump to bookmark: "))))
  (bookmark-jump bname))

  reply	other threads:[~2005-07-20 10:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 12:35 find-file, default path Jan Guido Donath
2005-07-19 15:46 ` Joe Corneli
2005-07-19 16:05 ` Alex Schroeder
2005-07-19 16:23   ` Lennart Borgman
2005-07-19 16:40 ` Kevin Rodgers
     [not found] ` <mailman.1014.1121792292.20277.help-gnu-emacs@gnu.org>
2005-07-20  6:58   ` find-file + bookmarks = true? (was: find-file, default path) Mathias Dahl
2005-07-20 10:54     ` Emilio Lopes [this message]
     [not found] ` <mailman.1008.1121788609.20277.help-gnu-emacs@gnu.org>
2005-07-20  9:08   ` find-file, default path Jan Guido Donath

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=loom.20050720T124356-57@post.gmane.org \
    --to=eclig@gmx.net \
    /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.
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).