Sorry, I just realized this is in the documentation. modeIndent = \_ _ -> insertB '\t'
...worked perfectly well. 2009/5/9 Jean-Philippe Bernardy <jeanphilippe.berna...@gmail.com>: > > You should probably redefine the tab key in your own keymap. You could > also define modeIndent for your mode; but that really should be an > auto indent function. > > -- JP > > On Sat, May 9, 2009 at 2:26 PM, Deniz Dogan <deniz.a.m.do...@gmail.com> wrote: >> >> Hi >> >> I have another question... How do I make my custom mode insert an >> actual tab character at point when I hit tab? I used this piece of >> code, but Yi seems to be inserting tabs at the beginning of the line >> no matter what I do! >> >> modeIndentSettings = IndentSettings { expandTabs = False, tabSize = 8, >> shiftWidth = 8 } >> >> Any help appreciated. >> >> Thanks, >> Deniz >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---