Last active
August 18, 2019 21:00
-
-
Save larrybolt/dcbca181415e3ef27dfeae19d2a66f79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"libs": [], | |
"loadEagerly": [], | |
"plugins": { | |
"webpack": { | |
"configPath": "./internals/webpack/webpack.dev.babel.js" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotspacemacs-configuration-layers | |
'( | |
;; ---------------------------------------------------------------- | |
;; Example of useful layers you may want to use right away. | |
;; Uncomment some layer names and press `SPC f e R' (Vim style) or | |
;; `M-m f e R' (Emacs style) to install them. | |
;; ---------------------------------------------------------------- | |
;; auto-completion | |
;; better-defaults | |
emacs-lisp | |
git | |
helm | |
;; markdown | |
multiple-cursors | |
;; org | |
(shell :variables | |
shell-default-height 30 | |
shell-default-position 'bottom) | |
;; spell-checking | |
syntax-checking | |
treemacs | |
version-control | |
auto-completion | |
;; For javascript dev, npm install -g eslint prettier | |
(javascript :variables | |
node-add-modules-path t) | |
prettier | |
react | |
) | |
(defun dotspacemacs/user-config () | |
"Configuration for user code: | |
This function is called at the very end of Spacemacs startup, after layer | |
configuration. | |
Put your configuration code here, except for variables that should be set | |
before packages are loaded." | |
(add-hook 'js2-mode-hook 'prettier-js-mode) | |
(add-hook 'web-mode-hook 'prettier-js-mode) | |
(eval-after-load 'web-mode | |
'(progn | |
(add-hook 'web-mode-hook #'add-node-modules-path))) | |
(require 'prettier-js) | |
(setq prettier-js-command "prettier-eslint_d") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment