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: PJ Weisberg
Subject: Re: spacing of ls output in emacs shell
Date: Tue, 8 Mar 2011 12:45:14 -0800

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



reply via email to

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