 ;; (server-start) ;; Start emacs as a server
 (line-number-mode 1) ;; Line numbers in mode line
 (column-number-mode 1) ;; Column numbers in mode line
-(set 'inhibit-startup-screen t) ;; No startup screen
+(validate-setq inhibit-startup-screen t) ;; No startup screen
 (scroll-bar-mode -1);; No scroll bar
-(set 'truncate-partial-width-windows nil) ;; Make line wrapping work for
+(validate-setq truncate-partial-width-windows nil) ;; Make line wrapping work for
 ;; multiple frames
 (tool-bar-mode -1) ;; Disable toolbar
 (menu-bar-mode -1) ;; Disable menu bar

(use-package package-utils :ensure t)
(use-package paradox :ensure t)

;; Functions/packages used in multiple files
;; ============================================================


;; (add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-newline 1)))

;; Open urls
(require 'browse-url)
(validate-setq browse-url-browser-function 'browse-url-generic)
(validate-setq browse-url-generic-program "sensible-browser")

;; Wrap lines at nearest word
(diminish 'visual-line-mode)
