Thanks,
-Lee
(defn foo
and hit return the cursor goes to the beginning of the next line, not indented. If I hit the tab key it tabs in, but it'll tab anything in further each time I hit tab; it's not sensitive to the syntax or at least it's not going to a reasonable place for the syntax. Within a definition if I type:
(cons (first x)
and hit return the cursor goes beneath the first "(", not beneath the second "(" (which is the behavior of emacs modes, which I prefer) or even under the "o" (which is the current behavior of Counterclockwise). Again, I can move things around with tab but it's not syntax aware.
I've tried doing this in parentheses-balanced expressions as well, but still no smarts. I use this feature not only to keep my code neat but also to make syntax errors visually obvious; it won't help for this if the indentation isn't automatically aware of the language's syntax.
What am I missing?
Thanks,
-Lee
> Bluefish does not work that way. It will indent to the last
> indentation in all cases. I've never used EMacs, but all the editors
> I've ever used work indenting the same way. All I can suggest is
> that you ask the Bluefish users group if there is a way to do what you
> want.
Thanks. Following your suggestion I've just asked about this on the Bluefish users group email list.
FWIW the feature I describe (syntax-aware auto-indenting) is common in the Lisp world, not only in emacs but also (to name just a few that are fresh in my memory) in MCL, DrScheme and LispWorks. I think it's the Lisp world norm. In the Clojure world versions are also available in (at least) Eclipse/Counterclockwise and NetBeans/Enclojure, although these aren't as refined as I would like. It's a very handy feature that I (and presumably others) have come to rely upon.
-Lee
It's also common in many other languages. Most IDEs have
smart-indenting, as do most advanced editors, like Vim, Emacs,
Textmate, jEdit, etc. I'm pretty surprised Bluefish doesn't have it.
- James
Yeah, it's actually my top requirement for a programming editor, ahead
of even syntax highlighting.
martin
Unless I am mistaken it seems to be missing a nice-to-have feature
for a programmer's editor, namely scriptability.
-- O.L.