   :config
   (setq whitespace-line-column 100)             ;; limit line length
   (setq whitespace-style '(face trailing newline))
-  :init
   (add-hook 'prog-mode-hook 'whitespace-mode))
 
 (use-package shrink-whitespace


(use-package ag)
(use-package helm-ag
  :init
  (setq helm-ag-insert-at-point 'symbol)
  (add-hook 'helm-ag-mode-hook (lambda () (grep-mode))))

(use-package projectile
  :diminish projectile-mode
  :bind ("C-c C-f" . projectile-find-file)
  :init
  (projectile-global-mode)
  :bind ("M-g" . helm-projectile-ag))

(use-package helm-descbinds
  :config (helm-descbinds-mode))

  (set-default-font "Inconsolata 17"))

(when (and window-system (equal system-type 'gnu/linux))
  ;; (set-default-font "Inconsolata 13"))
  (set-default-font "DejaVu Sans Mono 11"))
;; (setq x-alt-keysym 'meta)

(use-package json-mode)
