Browse Source

added config for lsp and npm in windows

master
Marc Pohling 4 years ago
parent
commit
6c4ca6bc7e
1 changed files with 15 additions and 6 deletions
  1. 21
      init.org

21
init.org

@ -828,13 +828,19 @@ Manage projects and jump quickly between its files
(add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook)
#+END_SRC
** web
:PROPERTIES:
:ID: c0b0b4e4-2162-429f-b80d-6e5334b1290e
:END:
:PROPERTIES:
:ID: c0b0b4e4-2162-429f-b80d-6e5334b1290e
:END:
apt install npm
sudo npm install -g vscode-html-languageserver-bin
evtl alternativ typescript-language-server?
apt install npm
sudo npm install -g vscode-html-languageserver-bin
evtl alternativ typescript-language-server?
Unter Windows:
Hier runterladen: https://nodejs.org/dist/latest/
und in ein Verzeichnis entpacken.
Optional: PATH erweitern unter Windows (so kann exec-path-from-shell den Pfad ermitteln):
PATH=P:\path\to\node;%path%
#+BEGIN_SRC emacs-lisp
(use-package web-mode
@ -845,6 +851,9 @@ Manage projects and jump quickly between its files
"\\.tpl\\.php\\'"
"\\.djhtml\\'"
"\\.[t]?html?\\'")
:init
(if *work_remote*
(setq exec-path (append exec-path '("P:/Tools/node"))))
:config
(setq web-mode-enable-auto-closing t
web-mode-enable-auto-pairing t)

Loading…
Cancel
Save