 explicitly specified that a variable should be set before a package is loaded,
 you should place your code here."
   (setq-default org-catch-invisible-edits 'smart)
-  (setq-default org-checkbox-hierarchical-statistics t))
+  (setq-default org-checkbox-hierarchical-statistics t)
+  (setq-default flycheck-scalastylerc "~/.scalastyle_config.xml")
+  (add-hook 'doc-view-mode-hook 'auto-revert-mode))
 
 ;; Do not write anything past this comment. This is where Emacs will
 ;; auto-generate custom variable definitions.

`dotspacemacs/user-config' first."
  (setq solarized-use-variable-pitch nil
        solarized-scale-org-headlines nil)
  (setq ns-use-srgb-colorspace nil))

(defun dotspacemacs/user-config ()
  "Configuration function for user code.

   ;; List of configuration layers to load.
   dotspacemacs-configuration-layers
   '(
     ansible
     clojure
     docker
     scala
     evil-cleverparens
     auto-completion
     (haskell :variables
              haskell-completion-backend 'intero
              haskell-enable-hindent-style "johan-tibell")
     html
     idris
     latex
     agda
     helm
     ;; auto-completion
     common-lisp
     better-defaults
     elixir
     elm
     emacs-lisp
     erlang
     git
     (go :variables
         go-use-gometalinter t)
     markdown
     nginx
     org
     osx
     pandoc
     (python :variables
             python-test-runner '(pytest nose))
     purescript
     rust
     scheme
     (shell :variables
            shell-default-shell 'multi-term
            shell-default-term-shell "/usr/local/bin/zsh"
            shell-default-height 30
            shell-default-position 'bottom)
     spell-checking
     sql
     syntax-checking
     terraform
     vagrant
     version-control
     yaml
     )
   ;; List of additional packages that will be installed without being
   ;; wrapped in a layer. If you need some configuration for these
   ;; packages, then consider creating a layer. You can also put tHe
   ;; configuration in `dotspacemacs/user-config'.
   dotspacemacs-additional-packages '(solarized-theme)
   ;; A list of packages that cannot be updated.
