Skip to content

Instantly share code, notes, and snippets.

@ice-blaze
Last active October 5, 2018 09:13
Show Gist options
  • Save ice-blaze/9403ac2d896933ae718fe45284a75321 to your computer and use it in GitHub Desktop.
Save ice-blaze/9403ac2d896933ae718fe45284a75321 to your computer and use it in GitHub Desktop.
spacemacs config
(defun dotspacemacs/user-config ()
;; tab size in space
;; (setq-default indent-tabs-mode t)
(setq tab_size 2)
(setq-default js2-basic-offset tab_size
js-indent-level tab_size)
(setq web-mode-markup-indent-offset tab_size)
(setq web-mode-code-indent-offset tab_size)
(setq c-basic-offset tab_size)
;; use php when we are in blade
(add-to-list 'auto-mode-alist '("\\.blade.php\\'" . web-mode))
(setq projectile-globally-ignored-directories
'(".idea" ".eunit" ".git" ".hg" ".fslckout" ".bzr" "_darcs" ".tox"
".svn" "build" "vendor" "cms/ext" "cms/Sencha" "vendor" "node_modules"))
;; Underscore as word
(add-hook 'python-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
(add-hook 'ruby-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
(add-hook 'js2-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
(add-hook 'prog-mode-hook #'(lambda () (modify-syntax-entry ?_ "w")))
;; When there are python issues
;;(setq flycheck-python-pycompile-executable "python3.6")
;javascript remove semi-colon error
(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment