From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: spacing of ls output in emacs shell Date: Tue, 8 Mar 2011 12:45:14 -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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299617149 23497 80.91.229.12 (8 Mar 2011 20:45:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 20:45:49 +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 Mar 08 21:45:45 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 1Px3mq-000756-F0 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 21:45:44 +0100 Original-Received: from localhost ([127.0.0.1]:48343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px3mq-0000NR-1x for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 15:45:44 -0500 Original-Received: from [140.186.70.92] (port=53374 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px3mS-0000N9-HE for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 15:45:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Px3mR-0004HI-2K for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 15:45:20 -0500 Original-Received: from smtpauth21.prod.mesa1.secureserver.net ([64.202.165.38]:57526) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Px3mQ-0004Gf-Na for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 15:45:18 -0500 Original-Received: (qmail 7879 invoked from network); 8 Mar 2011 20:45:17 -0000 Original-Received: from unknown (209.85.161.41) by smtpauth21.prod.mesa1.secureserver.net (64.202.165.38) with ESMTP; 08 Mar 2011 20:45:17 -0000 Original-Received: by fxm5 with SMTP id 5so6507018fxm.0 for ; Tue, 08 Mar 2011 12:45:15 -0800 (PST) Original-Received: by 10.223.127.210 with SMTP id h18mr4396209fas.46.1299617114958; Tue, 08 Mar 2011 12:45:14 -0800 (PST) Original-Received: by 10.223.81.66 with HTTP; Tue, 8 Mar 2011 12:45:14 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 64.202.165.38 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:79895 Archived-At: On Tue, Mar 8, 2011 at 10:25 AM, Strozzi, David J. wrot= e: > Hi, > > Thanks for the suggestion. =A0I warn you that I am an emacs "user" and no= t > "master." =A0I put these exact lines in my .emacs, restarted, did M-x she= ll, > 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. My suggestion would be to put (add-hook 'shell-mode-hook (lambda() (setq tab-width 8))) in your .emacs instead of the code Valentin suggested. (I would test it, but 'ls' doesn't output any tabs in shell mode when I try it.) -PJ