 		     (setq c (1+ c)))))
 	       )))
 
-(when (on-macos)
-  (set-face-attribute
-   'default nil
-   :font "JetBrains Mono"
-   :height 160
-   :weight 'extra-light
-   :width 'normal))
-
 (desktop-save-mode 1)

;; thanks man!

(setq hrs/default-font "DejaVu Sans Mono")
(setq hrs/default-font-size 18)
(setq hrs/current-font-size hrs/default-font-size)
(setq hrs/font-change-increment 1.2)


;; Reset file-name-handler-alist after initialization.
(add-hook 'emacs-startup-hook
	  (lambda ()
	    (and (display-graphic-p)
		 (if (on-macos)
		     (set-face-attribute
		      'default nil
		      :font "JetBrains Mono"
		      :height 160
		      :weight 'light
		      :width 'normal)
		   (hrs/reset-font-size)))
	    (message "Happiness delivered in %s with %d garbage collections."
		     (format "%.2f seconds"
			     (float-time
			      (time-subtract after-init-time before-init-time)))
		     gcs-done)
	    (desktop-save-mode 1)
	    (setq gc-cons-threshold 100000000 ;100MB
		  gc-cons-percentage 0.1
		  file-name-handler-alist default-file-name-handler-alist)))
