I use one synced dotfiles
repository for all of my computers, with some system-specific customization built-in. I've got a new high-DPI display on one of my computers, and would like to increase Emacs' font size just for that system. I'm trying to do the customization based on the system name, but I'm not having any success. (string= "Gotham" system-name)
should be working, but for some reason it's not properly setting the font size. Here is the relevant section of my dotspacemacs/init
:
(defun dotspacemacs/init ()
(setq-default
dotspacemacs-default-font
`(,(cond
((or (eq 'ms-dos system-type) (eq 'windows-nt system-type)) "Consolas")
((eq 'darwin system-type) "Source Code Pro")
(t "Source Code Pro"))
:size,(cond
((string= "Gotham" system-name) 30)
((or (eq 'ms-dos system-type) (eq 'windows-nt system-type)) 17)
((eq 'darwin system-type) 12)
(t 17))
:weight normal
:width normal
:powerline-scale 1.1)
))
The two lines to set size by system-type
work fine, but my system-name
will not. I've also tried using (string= "Gotham" (system-name))
, but that doesn't do it either. Describing the variable system-name
does tell me that the value is "Gotham".
System information:
- OS: Windows 10
- Emacs 25.2.1
- Spacemacs: 0.200.9
(setq-default ...)
form interactively? What does it return?nil
dotspacemacs-default-font
expression I get("Consolas" :size 30 :weight normal :width normal :powerline-scale 1.1)