0

When I work on web files I usually use web-mode for javascript, php and css files, the problem I have is that yasnippet uses the current mode to find what snippets to load for that buffer ( as stated in the docs ), but I would like to load a basic set of snippets for the current mode and also load some different sets of snippets depending on the file extension. Is this possible?.

1 Answer 1

0

Instead of associating web-mode with that extension in auto-mode-alist, associate your own custom derivative mode (using define-derived-mode), and load whatever you want in the body of that mode.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.