"Slava Pestov" <[email protected]> writes:
> Jose,
>
> Indentation for [let is a bit tricky to get right. jEdit doesn't do
> it, so if FUEL implemented it, it would be a killer feature for sure.
>
> Here is how to indent [let forms:
>
> [let | x1 [ ... ]
> x2 [ ... ] ! line up 'x1' with 'x2'
> x3 [ ... ] |
> ... ! first line of body has 4 space indent
> ...
Looks like emacs is bendable enough. The patch below should take care of
[let and friends (including [| ... | ... ] forms), if i got it right.
Maybe i left out some corner case, but please see how it works for you.
Thanks!
The following changes since commit af27929ea40659e0d715cefb52b17d8bbf045160:
Jose A. Ortega Ruiz (1):
Merge commit 'origin/master' into emacs
are available in the git repository at:
http://git.hacks-galore.org/jao/factor.git emacs
Jose A. Ortega Ruiz (1):
FUEL: Indentation for [let and [| forms.
misc/fuel/factor-mode.el | 23 +++++++++++++----------
misc/fuel/fuel-syntax.el | 44 ++++++++++++++++++++++++++++++++++++++------
2 files changed, 51 insertions(+), 16 deletions(-)
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk