riot/riot

Update README, add emacs support.

samuelmesq opened this issue · 3 comments

Describe your issue:

Hi, in the section "Editors / Editor Plugins" you can now add emacs, in the release v14 aka “Boulogne-sur-mer” of web-mode they add support for riot as a engine.

My setup

Like i said is necessary install web-mode for this to work, but if someone is using emacs for web development, they probability already have web-mode, so okay. Then add in .emacs that follow lines:

(add-to-list 'auto-mode-alist '("\\.tag\\'" . web-mode))
(setq web-mode-engines-alist
  '(("riot" . "\\.tag\\'")))

The final result:

2016-09-01-211037_464x321_scrot

Is better when put JS code inside the script tag

How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

@samuelmesq could you please make a pull request?

thanks @samuelmesq I am closing this issue