Re: Override "emulated tabs" when editing Makefiles?

AVKuznetsov <kuzn-Z+4OxV1pPnQgONJHhpZ/[email protected]>
Newsgroups gmane.editors.nedit.user
Organization MEPhI
Message-ID <[email protected]>
On Tue, 20 May 2008 12:07:40 +0300
"Offer Kaye" <[email protected]> wrote:

> Hi,
> I don't like using tabs in my source files so I've set the NEdit
> defaults to use emulated tabs. However, when editing a Makefile I
> *have* to use a tab character as the first character of a command
> line.
> 
> Is there a way to automatically override the "use emulated tabs"
> option when in Makefile language-mode? I saw in the language-mode
> window that there is a way to change the number of spaces per emulated
> tab, but not the actual emulated tab setting. But I was hoping this
> could be set someplace else...?
> 
> Thanks,
> -- 
> Offer Kaye

Hi,

you can try the following.

In the Program Smart Indent menu set for the Makefile mode

set_use_tabs(1)      
in the Language Specific Initialization Macro and Definitions field

return -1
in the Newline Macro field

Apply and Save Defaults...

Alexey Kuznetsov
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.