[ESS] Auto-fill and Rd files

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Thu Nov 16 22:01:15 CET 2006


Hello!

I constantly use auto-fill mode and keybinding \M-q i.e. fill-paragraph
that aligns the whole paragraph. However, I have problem with this when
I edit Rd files.
Say I have the following text

  jdhcjhds vcjfdsvchfdjsvhc djvh csjfdhv cjdshv cj vhjchdsajhvcjah...
  dhcjhdajc hajdshc ajdch ajdsk hcjda cja dhsjc hdajsc hajds hcjad hjc a

... means that line goes over fill-column limit. When I issue \M-q I get

  jdhcjhds vcjfdsvchfdjsvhc djvh csjfdhv cjdshv cj vhjchdsajhvcjah
dhcjhdajc hajdshc ajdch ajdsk hcjda cja dhsjc hdajsc hajds hcjad hjc a
^^

i.e. aligned paragraph, but without proper identation. It is very
frustrating and I wonder if I can do anything about this?

Thanks!

I have this in my .emacs:

(setq-default fill-column 75)
(add-hook 'find-file-hooks 'turn-on-auto-fill)

-- 
Lep pozdrav / With regards,
    Gregor Gorjanc
----------------------------------------------------------------------
University of Ljubljana     PhD student
Biotechnical Faculty
Zootechnical Department     URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3                   mail: gregor.gorjanc <at> bfro.uni-lj.si

SI-1230 Domzale             tel: +386 (0)1 72 17 861
Slovenia, Europe            fax: +386 (0)1 72 17 888

----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.




More information about the ESS-help mailing list