Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@larrybolt
Last active August 18, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larrybolt/dcbca181415e3ef27dfeae19d2a66f79 to your computer and use it in GitHub Desktop.
Save larrybolt/dcbca181415e3ef27dfeae19d2a66f79 to your computer and use it in GitHub Desktop.
{
"libs": [],
"loadEagerly": [],
"plugins": {
"webpack": {
"configPath": "./internals/webpack/webpack.dev.babel.js"
}
}
}
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