[ESS] ess-r-args-show
Patrick Connolly
p_connolly at slingshot.co.nz
Tue Aug 16 11:56:28 CEST 2011
On Mon, 15-Aug-2011 at 01:32PM -0500, Rodney Sparapani wrote:
|> Patrick Connolly wrote:
|> >Dear ESS genii,
|> >
|> >At some stage, I found this bit for my ~/.emacs file which I find very
|> >useful.
|> >
|> >
|> >;; Show function argument completion while editing R code and
|> >;; interacting with an inferior R process
|> >(define-key ess-mode-map [f5] 'ess-r-args-show)
|> >(define-key ess-mode-map [f6] 'ess-r-args-insert)
|> >(define-key inferior-ess-mode-map [f5] 'ess-r-args-show)
|> >(define-key inferior-ess-mode-map [f6] 'ess-r-args-insert)
|> >
|> >
|> >Being a fan of lazy typing, I find it arduous to press the F5 key
|> >after I've gone to all the bother of typing a function name and then
|> >an opening bracket. My question is what would I need to add to the
|> >.emacs file so that the args appeared as though I'd pressed F5? I
|> >seem to remember seeing that happen when a colleague was using Vincent
|> >Goulet's GNU Emacs Windows distribution.
|> >
|> >TIA
|> >
|> >
|>
|> Hi Patrick:
|>
|> Did you try something like this [prior to (require 'ess-site)]:
|>
|> (setq ess-r-args-electric-paren t)
I have a line along the lines of
(load "$ESSHOME/lisp/ess-site")
which I assume would do the same as (require....)
In any case, (setq ess-r-args-electric-paren t) makes no difference.
Perhaps something else conflicts with it.
Thanks for the suggestion anyway.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the ESS-help
mailing list