On Apr 8, 8:17 pm, Stephen Compall <[email protected]> wrote: > Divia <[email protected]> writes: > > I was wondering if there was a way in emacs to automate this, so that > > if I pressed tab in the middle of a string that followed > > the :documentation keyword, it would automatically line it up like > > that. My apologies if this is a stupid or obvious question--I've been > > emacs for years, but know embarrassingly little about it. > > It's dangerous for indent to do that, because Emacs doesn't know when > whitespace is semantically relevant (imagine running `indent-region' on > a big blob with lots of strings containing newlines). > > If you use M-q (fill-paragraph) or auto-fill-mode, you'll get that > indentation, though. Theoretically, you could write a simple Emacs Lisp > function that replaced all "\n[ \t]+" with " " in the string around > point and re-called fill-paragraph. > > -- > Sorry but you say Nibiru is a Hoax? Doesnt Exist? So maybe The > Sumerian people doesnt exist also! --Anonymous by way of SkI
Thanks very much. M-q is exactly what I needed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
