Apparently the correct way to set the default font is the following:
(custom-set-faces
'(default ((t (:family "Raize" :foundry "raster" :slant normal
:weight normal :height 120 :width normal)))))
But it's not portable, that means I cannot copy and paste on a different init.el
on another computer if I don't check the existence of the correct font before.
A solution is to use a conditional. I already modified my emacs configuration to be environment sensitive, but I cannot solve this issue, I mean I did not manage how to correctly extract the statement from the (custom-set-faces ...)
block to use within a (setq ...)
, for instance. Or, as alternative, I wonder if I can use an if()
in this case.
Any clue?