help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spacing of ls output in emacs shell


From: Valentin Plechinger
Subject: Re: spacing of ls output in emacs shell
Date: Tue, 08 Mar 2011 21:54:46 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Tue, 8 Mar 2011 12:45:14 -0800,
PJ Weisberg wrote:
> 
> On Tue, Mar 8, 2011 at 10:25 AM, Strozzi, David J. <strozzi2@llnl.gov> wrote:
> > 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.
> 
> 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

Ah yes, I forgot about the 8 spaces, that should work better (or try both 
together).
I tried both and it works fine for me (but I never had this problem in the 
first place).

Besides that, is the problem only in this case or whenever you copy things from 
emacs?

Best Regards
Valentin Plechinger



reply via email to

[Prev in Thread] Current Thread [Next in Thread]