From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Strozzi, David J." Newsgroups: gmane.emacs.help Subject: Re: spacing of ls output in emacs shell Date: Tue, 8 Mar 2011 10:25:56 -0800 Message-ID: References: <8762rt33ot.wl%v.plechinger@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299608790 5912 80.91.229.12 (8 Mar 2011 18:26:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 18:26:30 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Valentin Plechinger Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 08 19:26:25 2011 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.69) (envelope-from ) id 1Px1c1-0000Vd-2z for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 19:26:25 +0100 Original-Received: from localhost ([127.0.0.1]:56344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px1bz-0001C0-Gm for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 13:26:23 -0500 Original-Received: from [140.186.70.92] (port=52724 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px1bd-00019T-7z for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 13:26:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Px1bb-0006nE-Ab for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 13:26:00 -0500 Original-Received: from nspiron-3.llnl.gov ([128.115.41.83]:64062 helo=smtp.llnl.gov) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Px1bb-0006mq-6A for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 13:25:59 -0500 X-Attachments: None Original-Received: from nspexhub-1.llnl.gov (HELO nspexhub-1.the-lab.llnl.gov) ([128.115.54.113]) by smtp.llnl.gov with ESMTP; 08 Mar 2011 10:25:57 -0800 Original-Received: from NSPEXMBX-B.the-lab.llnl.gov ([128.115.54.106]) by nspexhub-1.the-lab.llnl.gov ([172.16.54.113]) with mapi; Tue, 8 Mar 2011 10:25:57 -0800 Thread-Topic: spacing of ls output in emacs shell Thread-Index: AcvdvkQBfTtH6114R/iGQay4ek1vKg== In-Reply-To: <8762rt33ot.wl%v.plechinger@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.0.101115 acceptlanguage: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.115.41.83 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:79888 Archived-At: Hi, Thanks for the suggestion. I warn you that I am an emacs "user" and not "master." I put these exact lines in my .emacs, restarted, did M-x shell, ls, same thing - tabs appear in the ls output, and emacs interprets them as giving about 4 spaces. Is there something else I need to do to enable this? I don't understand lisp, so I am not smart enough to think of what I need to do to adapt this to my environment. Thanks, Dave On 3/8/11 9:46 AM, "Valentin Plechinger" wrote: >At Tue, 8 Mar 2011 08:43:26 -0800, >Strozzi, David J. wrote: > >> Any advice? Can I tell emacs "tab =3D 8 spaces for shells?" Or tell it >>not >> to use tabs but spaces in shells? >> Thanks for your help, >> David Strozzi >>=20 > > >Have you tried putting something like this in your .emacs? > >(setq shell-mode-hook > (function (lambda () > (setq indent-tabs-mode nil)))) > >Best regards, >Valentin Plechinger > > > >