[ESS] auto-fill-mode and roxygen
zenlines at gmail.com
zenlines at gmail.com
Sat Jul 27 15:36:02 CEST 2013
Hi Henning,
wunderbar, I just updated my copy and will test it soon. Thanks much!
Best
Brian
On 07/27/2013 02:42 PM, Henning Redestig wrote:
> Hi Brian
>
> I may be slow but I get there in the end. I just committed
> interoperability between ess-roxy and auto-fill-mode so that the
> fill-prefix is set to the appropriate roxygen prefix. If you don't
> feeling like using the svn version you can also add
>
>
> (add-hook 'ess-mode-hook (lambda nil
> (auto-fill-mode t)
> (make-local-variable 'adaptive-fill-regexp)
> (setq adaptive-fill-regexp (concat ess-roxy-re adaptive-fill-regexp))
> (make-local-variable 'adaptive-fill-first-line-regexp)
> (setq adaptive-fill-first-line-regexp (concat ess-roxy-re
> adaptive-fill-first-line-regexp))
> (make-local-variable 'paragraph-start)
> (setq paragraph-start (concat "\\(" ess-roxy-re "\\)*"
> paragraph-start))
> (make-local-variable 'paragraph-separate)
> (setq paragraph-separate (concat "\\(" ess-roxy-re "\\)*"
> paragraph-separate))
> ))
>
>
> to your .emacs
>
> cheers, Henning
>
>
> 2013/7/16 Henning Redestig <henning.red at gmail.com
> <mailto:henning.red at gmail.com>>
>
> Hi Brian,
>
> sorry i have been prioritizing other things in the summer heat but i
> didn’t forget and i will have a look soon. But will make no promises
> of when. Perhaps already tomorrow
>
> Best. henning
>
>
> 2013/7/15 <zenlines at gmail.com <mailto:zenlines at gmail.com>>
>
> Hi Henning,
> you didn't have a chance to play with the auto-fill in roxy-mode
> did you?
> Cheers,
> Brian
>
> On 06/06/2013 06:33 AM, Henning Redestig wrote:
>>
>> The expected behavior is to fill with ##', i have to try your
>> configuration to investigate when i get back from holiday next
>> week.
>>
>>> Den 4 jun 2013 16.48, "Brian" <zenlines at gmail.com
>>> <mailto:zenlines at gmail.com>> skrev:
>>>
>>> Hi List, hi Henning,
>>>
>>> I would like to ask whether there is a switch or
>>> configuration such that when a long line of roxy
>>> documentation is 'fill'ed it creates a new line starting with
>>> "##' ". Currently, with my configuration it produces: "##",
>>> which I find quite annoying.
>>>
>>> Thanks for the tips!
>>> Brian
>>>
>>> My truncated configuration:
>>>
>>> ...
>>> ;; Roxy-conf
>>> (setq ess-roxy-fill-param-p t)
>>> (setq ess-roxy-template-alist (list (cons "description" "")
>>> (cons "details" "")
>>> (cons "param" "")
>>> (cons "return" "")
>>> (cons "examples" "")))
>>> ...
>>> (load "~/.emacs.d/ess-svn/lisp/ess-site.elc")
>>> (add-hook 'ess-mode-hook 'turn-on-auto-fill)
>>> ...
>>>
>>> ______________________________________________
>>> ESS-help at r-project.org <mailto:ESS-help at r-project.org>
>>> mailing list
>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
>
More information about the ESS-help
mailing list