 
 ;;;; base settings
 
-;;; tab is 4
+;;; indent is 4, not tab
 (setq-default tab-width 4)
+(setq-default indent-tabs-mode nil)
 
 ;;; not backup
 (setq make-backup-files nil

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

;; indent
(defun web-mode-hooks ()
  (setq indent-tabs-mode nil)
  (setq web-mode-markup-indent-offset 2))
(add-hook 'web-mode-hook 'web-mode-hooks)

;; set engine
(setq web-mode-engines-alist '(("smarty" . "\\.tpl\\'")))

;;; conf-mode is 8 tab
(add-hook 'conf-mode-hook (lambda () (setq indent-tabs-mode t) (setq tab-width 8)))

;;;; install package settings

;;; flycheck
(add-hook 'go-mode-hook #'global-flycheck-mode)
