Create new, a little bit better structured configuration
* Group configuration by package, and only then by language mode * Slim down all the languages
This commit is contained in:
parent
4d5f300113
commit
1a911716c0
38 changed files with 513 additions and 18 deletions
|
|
@ -1,35 +0,0 @@
|
|||
;;; 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-etags company-dabbrev-code
|
||||
company-yasnippet company-files))))
|
||||
|
||||
;;========== Tide mode ============================
|
||||
;; TODO: Figure out how to use tide with Emacs and NVM.
|
||||
(defun tide-config-js ()
|
||||
"Configure tide mode."
|
||||
(interactive)
|
||||
(tide-setup)
|
||||
(eldoc-mode))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'js-mode-hook 'editor-config-js)
|
||||
(add-hook 'js-mode-hook 'completion-config-js)
|
||||
|
||||
(provide 'js)
|
||||
;;; js.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue