Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Rebol mode for Emacs

From: jeff:rebol at: 18-Dec-2000 19:31

> Yeah! Way to go! Like Jeff, I still dream of getting > those close brackets balanced with the open and not the > body of the block. Perhaps that is not yet to be.
Maybe it is meant to be. Here's a quick hack that makes it work. Add this line to rebol.el to the function rebol-indent-line, right after these three lines:
> ;; Don't alter indentation of a ;;; comment line. > nil > (if (listp indent) (setq indent (car indent)))
Add this: (if (looking-at "[ \t]*[]]") (setq indent (- indent 4))) That's on line 96. That's it and then you have proper REBOL style formatting of close braces. :-) -jeff