What should I put in .spacemacs so that web-mode
will be enabled instead of php-mode
for .blade.php
files in Laravel?
Place the following in your $HOME/.spacemacs file, in the dotspacemacs/user-config
function:
(add-to-list 'auto-mode-alist '("\\.blade.php\\'" . web-mode))
-
user-init sounds fine. I'm not an expert on spacemacs, but you can put it just about anywhere and it'll be fine. – Brian Malehorn Jan 28 '16 at 22:31
-
1i put it in user-config. it didnt work when i put it in user-init though. – shangsunset Jan 29 '16 at 2:45