 
 (use-package counsel
   :bind (("M-x" . counsel-M-x)
-	 ("C-x b" . counsel-ibuffer)
-	 ("C-x C-f" . counsel-find-file)
-	 ("C-h C-t" . counsel-load-theme)
-	 :map minibuffer-local-map
-	 ("C-r" . counsel-minibuffer-history))
+         ("C-x b" . counsel-ibuffer)
+         ("C-x C-f" . counsel-find-file)
+         ("C-h C-t" . counsel-load-theme)
+         :map minibuffer-local-map
+         ("C-r" . counsel-minibuffer-history))
   :config
   (setq ivy-initial-inputs-alist nil)) ;; Don't start searches with ^
 

  :diminish
  :config
  (setq olivetti-body-width 0.65
	olivetti-minimum-body-width 72
	olivetti-recall-visual-line-mode-entry-state t)
  (define-minor-mode icot/olivetti-mode
    "additional olivetti mode parameters"
    :init-value nil
    :global nil
    (if (bound-and-true-p icot/olivetti-mode)
        (progn
        (olivetti-mode 1)
          (icot/toggle-hide-mode-line)
          (text-scale-increase 2))
      (progn
	(text-scale-decrease 2)
	(icot/toggle-hide-mode-line)
	(olivetti-mode -1)))))

(use-package dimmer
  :ensure t

;; pdf-tools
(use-package pdf-tools
  :ensure t
  :after evil
  :config
  (pdf-tools-install)
  (evil-set-initial-state 'pdf-view-mode 'normal)
  :hook
  (pdf-view-mode . (lambda ()
                     (set (make-local-variable 'evil-normal-state-cursor) (list nil)))))

;; TODO Save state between restarts?
(use-package pdf-view-restore
  :after pdf-tools
  :config
  (pdf-view-restore-mode t))

;; TRAMP
(setq tramp-default-method "sshx")
