From: Brad M. <bm...@bl...> - 2004-03-31 07:16:29
|
Barry Hemphill wrote: > I love the new feature "Deep Indent" which makes indentation a little > more emacs-like (and logical IMHO) when editing Perl (and, I'm sure, > other languages). The only drawback to it is that Deep Indent only > works with parentheses - any chance we could (at least optionally) > have it work with curly braces and square brackets as well? I thought about doing this before. I'm pretty sure that would cause issues with at least one language, though I don't know of any actual problems offhand. Even deep indenting parens may mess up some languages, I'm not sure. The best answer seems to be the introduction of listOpenChars and listCloseChars properties to the mode files, allowing per-mode list formatting, which is really what deep indent is. Assuming ( and ) if the properties aren't specified should keep things working without having to update every mode file. A regex property for assignments might also be good, so that = and => can be lined up in successive lines like you've done in your examples. |