Figure out a way to do python virtual environments

This commit is contained in:
Maciej Szlosarczyk 2017-08-29 00:12:17 +03:00
parent 321146b0aa
commit 5a30c48953
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
8 changed files with 54 additions and 3 deletions

27
languages/js.el Normal file
View file

@ -0,0 +1,27 @@
;;; Js -- summary
;;; Commentary:
;;; Code:
;;========== Editor config =========================
(defun editor-config-js ()
"Editor configuration for Javascript."
(set-indent 2)
(set-width-80))
;;========== Code completion =======================
(defun completion-config-js ()
"Code completion and inspection for Javascript."
(company-mode 1)
(flycheck-mode 1)
(flymake-mode)
(set (make-local-variable 'company-backends)
'((company-tern company-capf company-dabbrev-code company-yasnippet
company-files))))
;;========== Hooks =================================
(add-hook 'js-mode-hook 'editor-config-js)
(add-hook 'js-mode-hook 'completion-config-js)
(provide 'js)
;;; js.el ends here