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

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

Re: Tab-key not working in auctex?


From: Johs
Subject: Re: Tab-key not working in auctex?
Date: Fri, 10 Nov 2006 20:41:56 +0100
User-agent: KNode/0.10.4

Ralf Angeli wrote:

> * Johs (2006-11-10) writes:
> 
>> Ralf Angeli wrote:
>>
>>> * Johs (2006-11-10) writes:
>>> 
>>>> What happens when you press the Tab-key in auctex?
>>> 
>>> (info "(auctex)Indenting")
>>
>> Have read that and it even describes that pressing the Tab-key should
>> perform an indentation:
>>
>> `<TAB>'
>>      `LaTeX-indent-line' will indent the current line.
>>
>> But that is not working eventhough I get this when I press C-h k TAB:
> 
> Perhaps you haven't understood what indentation means.  Please provide
> a minimal example file and describe on which line you typed TAB and
> what you expected to happen.
> 



The command I was looking for was 'indent-relative':

(add-hook 'TeX-mode-hook
          (lambda ()
            (local-set-key "\t" 'indent-relative)))

that does the trick!


reply via email to

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