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

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

Re: creating alias-link to file


From: Peter Lee
Subject: Re: creating alias-link to file
Date: Fri, 22 Sep 2006 23:03:17 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

>>>> Johannes Quint writes:

    > is it possible to open a file with find-file-at-point
    > using an alias?
    > i.e. i want to open the file ~/a/b/c/d/e/f/g/h.txt" but i want to open it 
by
    > going to the name "xy".

You could use abbrev's.

(define-abbrev global-abbrev-table "xy" "~/a/b/c/d/e/f/g/h.txt")

then:

C-x C-f xy C-x a e RET

or

C-x C-f xy C-x ' RET

I usually use these for common dirs I visit with long paths.

You could probably make it some local-abbrev-table ... specific to the
minibuffer as well... I've never tried that as I don't have that many.


Another option is to use environment vars from find-file.

(setenv "xy" "~/a/b/c/d/e/f/g/h.txt")

C-x C-f $xy RET



reply via email to

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