Admittedly, this is something like the first world problem, but I'm a little picky about the appearance of the display, and I find it very annoying when in some mode a new font size, family, bold / italics, etc. are set. What I would like to do is put (set-frame-font "Menlo-10") next to my .emacs, and then make emacs never change any aspect of this default font, except for color.
I can get the effect I want by doing something like this:
(mapc (lambda (face) (set-face-attribute face nil :family "Menlo" ;; something like (cdr (assoc 'font (frame-parameters)) would be better ;; for the :family, but it didn't immediately work :width 'normal :height 1.0 :weight 'normal :underline nil :slant 'normal)) (remove 'default (face-list)))
but this only works after I have downloaded a new buffer that created a font-lock for the faces to be changed, and this is a terrible hack. I suspect that there really is no way to block fonts to ignore some parts of what the mode is asking for, but I thought I'd ask.
In addition, AUCTeX is by far the worst intruder here, so if instead there is an AUCTeX parameter instead to prevent it from asking for changes in the family, size, etc., this will at least make the problem less annoying .
I am currently using the recent Emacs 24 filmed from HEAD.
deong source share