 (use-package hl-line)
 
 (use-package nyan-mode
+  :ensure t
   :init
   (nyan-mode t))
 


;; highlight some whitespace
(use-package leerzeichen
  :commands (leerzeichen-mode))
(add-hook 'prog-mode-hook 'leerzeichen-mode)
(eval-after-load 'dired


;; Pretty mode
;; Base set of pretty symbols.
(use-package prettify-symbols
  :init
  (global-prettify-symbols-mode 1)
  :config
  (defvar base-prettify-symbols-alist '(("<=" . ?≤)
                                        (">=" . ?≥)
                                        ("<-" . ?←)
                                        ("->" . ?→)
                                        ("lambda" . ?λ)))
  (defun prettify-symbols-hook ()
    "Set pretty symbols for programming modes."
    (setq prettify-symbols-alist
          (append '(("==" . ?≡)
                    ("!=" . ?≠)) base-prettify-symbols-alist)))
  (add-hook 'prog-mode-hook 'prettify-symbols-hook)
  (add-hook 'emacs-lisp-mode-hook 'prettify-symbols-hook)
  (setq prettify-symbols-unprettify-at-point 'right-edge))

;; don't hard-wrap text, but use nice virtual wrapping
(use-package adaptive-wrap)
