Erik de Castro Lopo wrote: > I'm still not getting this working. > > I now have: > > Haskell:.hs::Smart:None:4:4::\n\ > > and for nedit.smartIndentInit: > > Haskell: set_em_tab_dist(4)\n > set_use_tabs(0)\n\ > --End-of-Macro--\n\ > return\n\ > --End-of-Macro--\n\ > > and I'm still getting a tab character when I press tab.
The interesting question would be, what do you get, when you press return? If you don't get an error dialog, smart indent isn't turned on for Haskell. Preferences>Auto Indent>Smart will turn it on for the current window. Preferences>Default Settings>Language Modes... is for storing the indent type for a language mode permanently. Btw, one shouldn't try to edit the file nedit.rc *(or old name .nedit). It isn't intended to be edited. It stores the menu preference settings, and is in essence a collection of X resource strings. I tend to conclude you edited the file, because the menu "Program Smart Indent Macros" says for the Newline macro: return the indent request or -1. That is, you can't return nothing. Cheers anyways Jörg -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
