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

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

Re: Indenting Emacs Lisp only with tabs?


From: Elena
Subject: Re: Indenting Emacs Lisp only with tabs?
Date: Wed, 2 Sep 2009 06:54:25 -0700 (PDT)
User-agent: G2/1.0

On 2 Set, 13:35, Helmut Eller <eller.hel...@gmail.com> wrote:
> * Elena [2009-09-02 15:11+0200] writes:
>
> > On 2 Set, 12:56, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> >> Am 02.09.2009 um 12:38 schrieb Elena:
>
> >> > I'd like to use a proportional font, but that messes up indentation.
>
> >> That's the trouble with proportional fonts...
>
> > Well, that's a trouble with editors - like Emacs - where you can't
> > move characters with pixel precision.
>
> To me it seems more like a limitation of text files.
>
> > However, if the indenting function does not try to overcome editor's
> > limitations by adding spaces to line things up, tabs work quite well.
>
> You can set tab-width to 1 and the indent function will only insert
> tabs.  It's more common though, to not use tabs at all by disabling
> indent-tab-mode.

That works, thanks.

Besides tab-width, I've set every variable in "Lisp indent" group to
4, 'lisp-indent-offset' and 'lisp-body-indent' to 4 too, and code now
gets indented as I wished.


reply via email to

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