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

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

Re: How to alias directories?


From: Miles Bader
Subject: Re: How to alias directories?
Date: 30 Apr 2004 06:53:00 +0900

Kin Cho <ignore-this-prefixkin@techie.com> writes:
> You could (setenv "x" "/long/dir/name/"), then C-x C-f $x.

Yeah, that's what I do (though actually I set them in my .profile file
when logging in).

It's nice because it works outside of emacs as well, in shells etc.
Regrettably it doesn't work in GDB and typical GUI apps (but then the
latter are usually barely usable from the keyboard anyway; as for GDB,
well... gotta fix that one of these days...).

Emacs file-name-completion &c work well with these too.

The one annoying thing about this method is that when you change a
setting, it's a bit of a pain to make running programs see the change,
so it's best used for aliases which are relatively stable.

-Miles
-- 
P.S.  All information contained in the above letter is false,
      for reasons of military security.


reply via email to

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