From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: creating alias-link to file Date: Fri, 22 Sep 2006 23:03:17 GMT Organization: x Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158968429 9693 80.91.229.2 (22 Sep 2006 23:40:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2006 23:40:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 23 01:40:28 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQud1-0007Zv-ID for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Sep 2006 01:40:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQud1-0003mg-5e for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Sep 2006 19:40:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr29.news.prodigy.net.POSTED!404941e6!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:T7z6SlhujWcWTm0fxe/Es7v55VI= Original-Lines: 31 Original-NNTP-Posting-Host: 66.194.80.196 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr29.news.prodigy.net 1158966197 ST000 66.194.80.196 (Fri, 22 Sep 2006 19:03:17 EDT) Original-NNTP-Posting-Date: Fri, 22 Sep 2006 19:03:17 EDT X-UserInfo1: Q[RGGVSEAJWMAP\YKBCB^]\@PJ_^PBQLGPQRJRQIMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN Original-Xref: shelby.stanford.edu gnu.emacs.help:141949 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37570 Archived-At: >>>> 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