 (flycheck-add-mode 'javascript-eslint 'js2-jsx-mode)
 
 
-
 ;; Neotree configurations
 (global-set-key [f8] 'neotree-toggle)
 

(electric-pair-mode 1)
(setq electric-pair-pairs '(
                            (?\" . ?\")
                            (?\` . ?\`)
                            (?\( . ?\))
                            (?\{ . ?\})

(add-to-list 'interpreter-mode-alist '("node" . js2-mode))

(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))

;;-------------------

;; web-mode config

(setq web-mode-markup-indent-offset 2
        web-mode-css-indent-offset 2
        web-mode-code-indent-offset 2)
  (setq js-indent-level 2)

;;---------------------

;; Emmet settings

(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook  'emmet-mode) ;; enable Emmet's css abbreviation
(setq emmet-expand-jsx-className? t)
(setq emmet-self-closing-tag-style " /")

;;---------------------


;; GLOBAL enabled modes and hooks
(require 'flycheck)
