Font selection based on display width
This commit is contained in:
parent
648f1dd3dd
commit
dd3f273e0b
1 changed files with 5 additions and 4 deletions
9
init.el
9
init.el
|
@ -47,10 +47,11 @@
|
||||||
(scroll-bar-mode -1) ; no scrollbar
|
(scroll-bar-mode -1) ; no scrollbar
|
||||||
(tool-bar-mode -1) ; no toolbar
|
(tool-bar-mode -1) ; no toolbar
|
||||||
(menu-bar-mode -1) ; no menubar
|
(menu-bar-mode -1) ; no menubar
|
||||||
|
(when window-system
|
||||||
;;(set-frame-font (font-spec :family "terminus (ttf)" :size 12 :antialias nil))
|
(set-frame-font (if (> (display-pixel-width) 1280)
|
||||||
(set-frame-font (font-spec :family "Ubuntu Mono" :size 14 :antialias t))
|
(font-spec :family "Ubuntu Mono" :size 14 :antialias t)
|
||||||
(set-frame-parameter nil 'fullscreen 'fullboth)
|
(font-spec :family "terminus (ttf)" :size 12 :antialias nil)))
|
||||||
|
(set-frame-parameter nil 'fullscreen 'fullboth))
|
||||||
|
|
||||||
(load (concat user-emacs-directory "init-load-path.el"))
|
(load (concat user-emacs-directory "init-load-path.el"))
|
||||||
(load-theme (if window-system 'narf-dark 'wombat) t)
|
(load-theme (if window-system 'narf-dark 'wombat) t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue