     :on (setq sort-fold-case t)
     :off (setq sort-fold-case nil)
     :evil-leader "tS")
+
+  ;; Require a final newline even in conf-mode (default is nil).
+  (defun set-require-final-newline ()
+    (set (make-local-variable 'require-final-newline)
+         mode-require-final-newline))
+  (add-hook 'conf-mode-hook #'set-require-final-newline)
 
   ;; For *most* languages I work with 2 space indent is the norm.
   (setq-default evil-shift-width 2)

  ;; The GTK system tooltips do not take HiDPI into account, thus placing the tooltips incorrectly.
  (setq x-gtk-use-system-tooltips nil)

  (defun set-require-final-newline ()
    (set (make-local-variable 'require-final-newline)
         mode-require-final-newline))
  (add-hook 'conf-mode-hook #'set-require-final-newline)

  ;; Ensure files visited by emacsclient a fullscreen experience.
  ;; TODO only trigger when a new frame was requested by the client.
  (add-hook 'server-visit-hook #'delete-other-windows)

  ;; https://lists.nongnu.org/archive/html/bug-gnu-emacs/2018-01/msg00260.html
  (push "Noto Color Emoji" face-ignored-fonts)

  ;; Prevent the text selected in visual mode to automatically get copied into
  ;; the clipboard. Without this it would be pretty cumbersome to paste text
  ;; from external applications.
  ;; http://emacs.stackexchange.com/questions/14940/emacs-doesnt-paste-in-evils-visual-mode-with-every-os-clipboard
  (fset 'evil-visual-update-x-selection 'ignore)

  ;; Lets trust myself to not create problematic symlinks.
  (setq vc-follow-symlinks t)

