[Top][All Lists]

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

Re: command line shortcut to (dired "zz/yy*")

From: Kevin Rodgers
Subject: Re: command line shortcut to (dired "zz/yy*")
Date: Wed, 23 Nov 2005 13:28:08 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Dan Jacobson wrote:
> Maybe
> $ emacs zz/yy\*
> should act like (dired "zz/yy*" nil) instead of current "new file"
> action. Hmmm, there are pros and cons and maybe this is no big deal.

"Emacs is the extensible, customizable, self-documenting real-time
display editor."

There are at least a couple ways you can accomplish that:

1. Start Emacs like this: emacs --eval '(dired "zz/yy*")'

2. Put this in your .emacs:

(add-hook 'find-file-not-found-hooks
          (lambda ()
            ;; see find-file-noselect:
            (if (and find-file-wildcards
                     (not (string-match "\\`/:" buffer-file-name))
                     (string-match "[[*?]" buffer-file-name))
                  (dired buffer-file-name)

But if you aren't even sure that you want this feature, why are you
posting to <address@hidden>?

Kevin Rodgers

reply via email to

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