+(setq pdf-misc-print-programm "/usr/bin/lpr")
+
+(use-package magit
+ :ensure t)
+
+(use-package eat
+ :ensure t
+ :config
+ ;; For `eat-eshell-mode'.
+ (add-hook 'eshell-load-hook #'eat-eshell-mode)
+ (setq eshell-visual-commands '()))
+
+;; Read ePub files
+(use-package nov
+ :ensure t
+ :init
+ (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
+ :config
+ (add-hook 'nov-mode-hook #'variable-pitch-mode))
+
+;; Set some preset fonts
+(use-package fontaine
+ :ensure t
+ :config
+ (setq fontaine-presets
+ '((regular-1
+ :default-family "Iosevka Nerd Font"
+ :default-height 120
+ :variable-pitch-family "Linux Biolinum O"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.1
+ :italic-family "Iosevka Etoile"
+ :line-spacing 1)
+ (large-1
+ :default-family "Iosevka Nerd Font"
+ :default-height 150
+ :variable-pitch-family "Linux Biolinum O"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.1
+ :italic-family "Iosevka Etoile"
+ :line-spacing 1)
+ (regular-2
+ :default-family "Fira Mono Nerd Font"
+ :default-height 140
+ :variable-pitch-family "Fira Sans Book"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.0
+ :line-spacing 1)
+ (large-2
+ :default-family "Fira Mono Nerd Font"
+ :default-height 140
+ :variable-pitch-family "Fira Sans Book"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.0
+ :line-spacing 1)
+ (ereader-Baskerville
+ :variable-pitch-family "Libre Baskerville"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.0
+ :line-spacing 1)
+ (ereader-Noto-Serif
+ :variable-pitch-family "Noto Serif"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.0
+ :line-spacing 1)
+ (ereader-Bembo-Tufte
+ :variable-pitch-family "ETBembo"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.1
+ :line-spacing 1)
+ (ereader-Literata
+ :variable-pitch-family "Literata"
+ :variable-pitch-weight normal
+ :variable-pitch-height 1.0
+ :line-spacing 1))))
+
+;; Custom functions
+
+;; Might want to run this automatically
+;; using variable after-focus-change-function
+(defun my/adjust-font-size-based-on-display ()
+ "Change size of fonts based on monitor."
+ (interactive)
+ (let* ((display-name (cdr (assq 'name (frame-monitor-attributes))))
+ (font-height (cond ((string-equal display-name "eDP-1") 140)
+ (t 120) ;; default
+ )))
+ (set-face-attribute 'default (selected-frame) :height font-height)))