From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: basic question: going back to dired Date: Mon, 21 Jul 2008 22:56:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <66d0c5e3-95d3-4c9b-a602-273375d6cf1f@j22g2000hsf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216708861 23185 80.91.229.12 (22 Jul 2008 06:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 06:41:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 08:41:49 2008 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 1KLBZ8-0004Z8-0S for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2008 08:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:47510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLBYE-0000dl-Nh for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2008 02:40:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j22g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1216706188 23565 127.0.0.1 (22 Jul 2008 05:56:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 22 Jul 2008 05:56:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j22g2000hsf.googlegroups.com; posting-host=24.6.97.120; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160430 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:55778 Archived-At: On Jul 21, 11:59 am, Ben Aurel wrote: > hi > This is my first post here, so I hope this is the right place for asking > beginner questions. > > My question is simple: When I list some files in dired mode I select one > file to edit. Now how can I close this file and go back to dired without > closing emacs? To close the file, use the menu =E2=80=9CFile=E2=80=A3Close=E2=80=9D. Emacs= doesn't have a keyboard shortcut for this due the fact that emacs has build on the 1980's mindset and havn't modernized. But you can add one by putting the following in your emacs preference file. (the file at =E2=80=9C~/.emacs= =E2=80=9D): (global-set-key (kbd "C-w") 'kill-this-buffer) ; close This will let you press Ctrl+w to close the current file. To switch to files or directories you have opened before, you can use the menu =E2=80=9CBuffers=E2=80=9D. The =E2=80=9Cbuffer=E2=80=9D is term us= ed in the 1980s. Today you just call it =E2=80=9CTabs=E2=80=9D or =E2=80=9Cworkspace=E2=80=9D. So, for example, to switch to the previous tab, press Ctrl+x Ctrl+=E2=86=90= . (this is in the graphical menu Buffers too.) For a tutorial that treats emacs with modern concepts and terminologies, see: http://xahlee.org/emacs/emacs.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84