1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>new doom emacs user coming from vim here. so ive been having trouble with php files. did some looking and figured i use <a href="https://github.com/fxbois/web-mode">web-mode</a>. looking at documentation for this plugin, instructions for installation: </p> <blockquote> <p>Install </p> <p>First drop the file web-mode.el in a directory defined in your load-path.<br/> Then, add in your .emacs:</p> </blockquote> <pre><code>(require 'web-mode) (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode)) </code></pre> <ol> <li>where is my load-path located?</li> <li>this insturction is not doom specific, so i think i have to add above lines to some file, not <code>.emacs</code>. where?</li> </ol> <p>thanks in advance</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Far-Veterinarian9464"> /u/Far-Veterinarian9464 </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r38z02/doom_emacs_first_time_installing_pluginpackage/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/r38z02/doom_emacs_first_time_installing_pluginpackage/">[comments]</a></span> |