[ESS] Easy argument list: r-autoyas

ottorino ottorino-luca.pantani at unifi.it
Tue Mar 15 09:20:12 CET 2011

Il giorno ven, 11/03/2011 alle 10.07 +0100, Vitalie Spinu ha scritto: 
> Sven Hartenstein <lists at svenhartenstein.de> writes:
> >
> > For the yas mode to be active, it seems like at least one snippet must
> > be defined for ESS mode.
> I also don't have YAS active in ESS but it works fine, the function what
> r-autoyas is using is yas/expand, and that one can be used anywhere as long
> as (require 'yasnippet) is called in the .emacs.
> Ottorino, try calling explicitly M-x r-autoyas-expand after a name of the
> function. And see what are the error messages if any (C-h e).
> Vitalie.

Hi all,
thanks for the help.
Sorry for the delay in my answer. I was off my lab for a while. 

I reinstalled everything from scratch and now it works.
I probably missed something
I also installed it on my laptop, and all went well.

your site reports an extra parenthesis (marked **)**  hereafter) which
drove me crazy.

(setq skeleton-pair t)
(setq skeleton-pair-alist
          '((?\( _ ?\))
            (?[  _ ?])
            (?{  _ ?})))

(define-key ess-mode-map (kbd "(") '(lambda () (interactive)
                                      (skeleton-pair-insert-maybe nil)
                                      (r-autoyas-expand nil t)))**)**

Thanks A LOT


More information about the ESS-help mailing list