[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-file + bookmarks = true? (was: find-file, default path)
From: |
Emilio Lopes |
Subject: |
Re: find-file + bookmarks = true? (was: find-file, default path) |
Date: |
Wed, 20 Jul 2005 10:54:23 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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))