emacs/var/elfeed/db/data/83/8344344b9f9234d53270d66fad0b8d046f00e4c2
2022-01-03 12:49:32 -06:00

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 &#39;web-mode) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.phtml\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.tpl\\.php\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.[agj]sp\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.as[cp]x\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.erb\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.mustache\\&#39;&quot; . web-mode)) (add-to-list &#39;auto-mode-alist &#39;(&quot;\\.djhtml\\&#39;&quot; . 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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r38z02/doom_emacs_first_time_installing_pluginpackage/">[comments]</a></span>