magnars / tagedit

A collection of paredit-like functions for editing in html-mode.
99 stars 10 forks source link

Stop tagedit-insert-dot within erb tags? #7

Open maksle opened 11 years ago

maksle commented 11 years ago

When inside a ^(<%[=#]?) (my noob attempt at a regexp), it's not desirable to have . expand to class="". I think it's an experimental feature (?) so I tried to disable experimental features when in rhtml mode but perhaps I didn't do it right:

(add-hook 'rhtml-mode-hook (lambda () (tagedit-disable-experimental-features)))

Hope it's easy to solve.

maksle commented 11 years ago

It is strange: I disabled tagedit-mode in rhtml buffer and noticed that I could still use tagedit commands like taged-forward-slurp-tag. I went to a html and php file and same behavior in those. tagedit-mode only turns off experimental features and not the main tagedit functions. Is this normal or do I have a weird configuration? I am using your emacs .d settings almost exactly.

magnars commented 11 years ago

Yes, you're right - that's a halfway fix right there.