Remove redundant config & auto-mode-alist entries

Much of this config is done in package autoloads, and now that
auto-mode-alist is cached in doom-package-alist (after reading autoload
files), we can save some space by removing redundant config.
This commit is contained in:
Henrik Lissner 2018-05-14 20:47:53 +02:00
parent a631c10d05
commit 8cab2f19fd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 17 additions and 39 deletions

View file

@ -5,7 +5,7 @@
;;
(def-package! js2-mode
:mode "\\.js$"
:mode "\\.js\\'"
:interpreter "node"
:config
(setq js2-skip-preprocessor-directives t
@ -35,15 +35,15 @@
(def-package! typescript-mode
:mode "\\.ts$"
:commands typescript-mode
:config
(add-hook! 'typescript-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
(set! :electric 'typescript-mode :chars '(?\} ?\)) :words '("||" "&&")))
(set! :electric 'typescript-mode
:chars '(?\} ?\)) :words '("||" "&&")))
(def-package! rjsx-mode
:commands rjsx-mode
:mode "\\.jsx$"
:mode "components/.+\\.js$"
:init
(defun +javascript-jsx-file-p ()
@ -73,7 +73,7 @@
(def-package! coffee-mode
:mode "\\.coffee$"
:defer t ; file extensions registered by autoloads file
:init (setq coffee-indent-like-python-mode t))