   :init
   (setq auto-revert-check-vc-info nil                         ; don't update branch on auto-revert
         auto-revert-verbose nil)                              ; don't tell me about auto reverts
-  :config
-  (global-auto-revert-mode t)                                 ; revert unchanged files automatically
+  (add-hook 'prog-mode-hook #'auto-revert-mode)
+  (add-hook 'text-mode-hook #'auto-revert-mode)
+  :config
   :diminish auto-revert-mode)
 
 ;; built-in "simple" package

              (define-key deft-mode-map (kbd "<C-backspace>") #'deft-filter-clear))))

(use-package company
  :commands ( global-company-mode)
  :general
    ("s-d"        #'company-complete)
  :init
  (setq company-minimum-prefix-length 1            ; just one char needed
        company-dabbrev-downcase nil)              ; never downcase
  :config
  (use-package company-quickhelp
    :demand
    :config
    (company-quickhelp-mode 1))
  (global-company-mode)
  :diminish company-mode)

(use-package counsel-gtags
  :commands ( counsel-gtags-find-definition

    ("s-n"        #'next-error)
    ("s-p"        #'previous-error)
  :init
  (add-hook 'prog-mode-hook #'visual-line-mode)
  (add-hook 'text-mode-hook #'visual-line-mode)
  (add-hook 'visual-line-mode-hook #'(lambda () (diminish 'visual-line-mode "ⓥ")))
  (add-hook 'auto-fill-mode-hook #'(lambda () (message "here") (diminish 'auto-fill-function "⮨")))
  (setq kill-ring-max 200                      ; More killed items
        kill-do-not-save-duplicates t          ; No duplicates in kill ring
        save-interprogram-paste-before-kill t  ; save clipboard before killing
