From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: build a macro that opens a directory and prompts for file name Date: Fri, 23 Jan 2009 10:27:30 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <4r5tz7qrqjh.fsf@one.net> References: <87f0e43c-d0e9-45eb-8d4f-ae5c7745a2a3@t26g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232725325 7396 80.91.229.12 (23 Jan 2009 15:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2009 15:42:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 16:43:19 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQOBX-00057L-Cc for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 16:43:07 +0100 Original-Received: from localhost ([127.0.0.1]:35170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQOAF-0001EJ-VT for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 10:41:47 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1232724442 11602 166.84.1.5 (23 Jan 2009 15:27:22 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 23 Jan 2009 15:27:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:gLXNI92oTfTqwivMtv9aTI4VZiY= Original-Xref: news.stanford.edu gnu.emacs.help:166267 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:61590 Archived-At: Norm writes: > Hello all, > > I have been googleing and reading the docs trying to figure out a > solution to this. I spend the majority of my time working in a single > directory on a CIFS server and I am always doing a C-x C-f \\server\dir > \long_sub_dir\subdir\filename > > In the spirit of emacs I'd like to automate it so that when I do C-co > it knows the directory and simply prompts me for the file to be opened > or if I leave it blank and press RET it lists the directory. > > Any suggestions on how to accomplish this. > > Many thanks, > > Norm I use bookmarks to take me to the directories themselves. - Go to the directory that contains the file you want - Press C-x r m to memorize that location, and give it a name you can remember to navigate to that directory, just press C-x r b. You'll be prompted for the bookmark name, and it will open that directory. See the help for the function 'command bookmark-set' for details - Chris -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================