racket-mode icon indicating copy to clipboard operation
racket-mode copied to clipboard

Indent scribble like DrRacket.

Open LeifAndersen opened this issue 8 years ago • 2 comments

DrRacket indents scribble files so that they are easy to read. (Given that you likely want prose in at at-exp anyway.)

For example, I can create a file, and it indents like this:

#lang scribble/base

@list{This is
 a long bunch of words}

But in racket-mode, the following indents like this:

#lang scribble/base

@list{foo
      bar}

Which, leads to text going way to far off to the left.

LeifAndersen avatar Feb 18 '16 20:02 LeifAndersen

See also: #64

greghendershott avatar Feb 21 '16 15:02 greghendershott

Recently when I was converting Frog's README into Scribble, which was a pretty big job (for me), I found scribble-mode to work well for extended prose editing.

Sometimes I would even M-x racket-mode and M-x scribble-mode to flip back and forth. (But mainly, I triggered make to rebuild the docs, as opposed to racket-run-ing the file, and stayed in scribble-mode.)

Also I think the status quo indentation for at-exprs is quite nice for e.g. #lang at-exp racket (as opposed to authoring Scribble).

So ... I think the moral of the story might be, it's great that we can use one or more Emacs major modes to edit a given file in the way(s) we want? And, it's unlikely that one major mode will do the desired thing for all files and all people -- so, it's OK to have each of them prioritize?

greghendershott avatar Jun 10 '17 17:06 greghendershott

Reviewing open issues, I noticed this; I believe this is effectively closed by the recent addition of racket-hash-lang-mode.

greghendershott avatar Dec 21 '23 22:12 greghendershott