Question

I would like to have my yasnippets for Latex mode to be available for .Rnw files. How to go about this? Also, it would be nice to have R snippets available as well.

EDIT: I found out the real problem is that in .Rnw the TAB key is bound not to yasnippets. Does anyone know how to tackle this problem not messing up anything? (it is bound to noweb-indent-line)

Was it helpful?

Solution

I got fed up not being able to change the keymap of noweb-minor-mode-map, ess-noweb-mode-map, local-set-key and whatever that I gave up and just deleted the code from ess-indent and replaced it by (yas-expand)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top