Debian Sid, emacs25, cinnamon 3.2.7
In my ~/.emacs
I have
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil [...] :foundry "microsoft" :family "Consolas")))))
When I login in X using, e.g. xfce
and start emacs
I have that the default face uses Consolas
as I want, when I login using cinnamon
and start emacs
I have that the default face uses LucidaTypewriter
(that is a bitmapped font)!
In the second case M-x customize-face RET default RET
shows me a customization buffer where the font family is LucidaTypewriter
, while in my
~/.emacs
I still have a reference to Consolas
.
«edit1»
I forgot to mention: if I evaluate the custom-set-faces
form, as it is stored
inside my .emacs
, during a Cinnamon session the default face is reversed from LucidaTypewriter
to Consolas
as expected.
I have no problems on the Emacs side (at least I hope so...), I just want to understand what is happening and, possibly, avoid the small inconvenience of resetting the face to my liking.
«/edit1»
«edit2» I'm going to address some questions raised in a comment (thank you @jimmij).
Usually I start Emacs from the panel, the command that is used is always (i.e., in Cinnamon and in XFCE)
/usr/bin/emacsclient -c -a ""
but if in a Cinnamon session I start Emacs from the command line I have exactly the same behaviour ("wrong" font).
The
~/.emacs
file is correctly evaluated (I see all my customizations) and no error is reported.The
*Messages*
bufferLoading 00debian-vars...done Loading /etc/emacs/site-start.d/50asymptote.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50slime.el (source)... Loading /usr/share/emacs/site-lisp/slime/slime-autoloads.el (source)...done Loading /etc/emacs/site-start.d/50slime.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Mark set
Re X resources database
$ xrdb -q | grep -i emacs | grep -vi xemacs $
I have no resources concerning Emacs, irrespective of who set them.
«/edit2»
Who's playing behind my back? and how could I preempt their move?
ps the [...]
ellipsis in the code snippet just stays for a long sequence of default values.
---------------------------- UPDATE -----------------------------
ps (writing 24h later) installing the emacs25-lucid
package "solved" my problem, in the sense that now a freshly started Emacs uses Consolas — however, this at least leaves open my question "Who's playing behind my back?" with respect to the most common choice of installing the GTK gui version of Emacs.
-q
option? Other things to check are a Messages buffer (pehaps there are some errors) and .Xresources/.Xdefaults files (although I believe settings from .emacs should override them).(define-key special-event-map [config-changed-event] 'ignore)
help? (refer debbugs.gnu.org/cgi/bugreport.cgi?bug=25228#152)