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

[REBOL] Problem with emacs mode

From: chris::starforge::co::uk at: 28-Apr-2001 11:20

Hi, After Code Crusader died when I upgraded to Mandrake 8, I had to go back to Emacs for editing. I downloaded the latest version of the rebol.el file, set it up to activate using (setq load-path (cons "~/rebol" load-path)) (load-library "rebol") (add-to-list 'auto-mode-alist '("\\.r\\'" . rebol-mode) (add-to-list 'auto-mode-alist '("\\.cgi\\'" . rebol-mode) which seems to work fine. The mode itself becomes a little confused if speechmarks are used as part of html generation - if I have one speechmark in a data file, and another in the script it becomes confused about what is a string and what isn't. And I guess that's the cause of the problem I'm having: the indent doesn't work properly. In one place in my code I'm closing an if block - it should be indented 8 characters from the left, but rebol.el wants to put it out at 60 characters! I find auto-indent annoying enough in any mode, but this makes an otherwise great mode almost unusable. How can I completely deactivate the indent in emacs? I've never been able to find out how :( Chris -- New sig in the works Explorer 2260, Designer and Coder -- You can't judge a book by the way it wears its hair.