;; Set Fonts and their size (defvar customfontsettings '((mono . "Iosevka") (variabl . "RobotoCondensed") (size . 14))) (set-face-attribute 'variable-pitch nil :font (cdr (assoc 'variabl customfontsettings)) :height (* (cdr (assoc 'size customfontsettings)) 10) :weight 'regular) (set-face-attribute 'fixed-pitch nil :font (cdr (assoc 'mono customfontsettings)) :height (* (cdr (assoc 'size customfontsettings)) 10) :weight 'regular) (set-face-attribute 'default nil :font (cdr (assoc 'mono customfontsettings)) :height (* (cdr (assoc 'size customfontsettings)) 10) :weight 'regular) (add-to-list 'default-frame-alist `(font . ,(concat (cdr (assoc 'mono customfontsettings)) "-" (number-to-string (cdr (assoc 'size customfontsettings)))))) (set-face-attribute 'font-lock-comment-face nil :slant 'italic) (set-face-attribute 'font-lock-keyword-face nil :slant 'italic) ;; Set mode-line font (set-face-attribute 'mode-line nil :inherit 'variable-pitch) (set-face-attribute 'mode-line-inactive nil :inherit 'variable-pitch) ;; Set Usable Ligatures (dolist (char/ligature-re `((?- . ,(rx (or (or "-->" "-<<" "->>" "-|" "-~" "-<" "->") (+ "-")))) (?/ . ,(rx (or (or "/==" "/=" "/>" "/**" "/*") (+ "/")))) (?* . ,(rx (or (or "*>" "*/") (+ "*")))) (?< . ,(rx (or (or "<<=" "<<-" "<|||" "<==>" "