[ESS] knitr

Michael Hannon jm_hannon at yahoo.com
Sat Jun 2 23:36:17 CEST 2012


Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk> wrote:
.
.
.

>> Slightly related to the discussion here, I wish I could change the
>> hard-to-type "#+" delimiter for org-mode.  Or, at least, make an
>> electric-# key similar to the electric-<.
>
> I don't like the #+ syntax in org mode, my eyes still haven't adapted to
> it.  But I don't think its likely to change.  Making an electric + key
> should be straightforward, here's a simple version:
>
>
> (defun electric-plus ()
>   (interactive)
>   (insert (if (= (current-column) 0) "#+" "+")))

If I understand correctly, this problem has already been solved:

    http://orgmode.org/manual/Easy-Templates.html#Easy-Templates

See also:

    https://github.com/capitaomorte/yasnippet

-- Mike



More information about the ESS-help mailing list