From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "hackevin" Newsgroups: gmane.emacs.help Subject: Re: Defining directory ~/ on MS-Windows Date: Wed, 17 Nov 2004 11:46:51 +0800 Organization: Bentium Ltd. (CN99) Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100663477 3726 80.91.229.6 (17 Nov 2004 03:51:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2004 03:51:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 17 04:51:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CUGqc-0005wh-00 for ; Wed, 17 Nov 2004 04:51:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUGzP-00028P-3H for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Nov 2004 23:00:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.cn99.com!news.yaako.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 218.58.71.161 Original-X-Trace: news.yaako.com 1100663211 17136 218.58.71.161 (17 Nov 2004 03:46:51 GMT) Original-X-Complaints-To: usenet@news.yaako.com Original-NNTP-Posting-Date: Wed, 17 Nov 2004 03:46:51 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Original-Xref: shelby.stanford.edu gnu.emacs.help:126677 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: main.gmane.org gmane.emacs.help:22073 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22073 and also you can add the following part to your register --------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\GNU] [HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs] "HOME"="D:\\GNU\\Emacs" --------------------------------------------------------- 写入消息新闻:ud5yg8rg8.fsf@gorgeous.org... > "Eli Zaretskii" writes: > >>> From: graham@gorgeous.org >>> Date: Sat, 13 Nov 2004 22:34:12 +0000 >>> >>> On MS-Windows Emacs understands paths like ~/foo.txt. It converts >>> this to c:\foo.txt. I would like it to convert it to >>> c:\Documents and Settings\My User Name\foo.txt instead, like XEmacs >>> does. >>> >>> How can this be done? >> >> "~" is a short for %HOME%. So, if you define the environment variable >> HOME whose value is "c:\Documents and Settings\Your User Name", you >> will get what you want. > > > Thanks, this did the trick. > > > Graham