I'm using emacs with a large font, however I do not need the font to be too large on certain buffers and/or modes. For example, when I use neotree
I use a different font and a smaller size, I do that like this:
(add-hook 'neotree-mode-hook '(lambda ()
(setq buffer-face-mode-face '(:family "Hack" :height 130 :width semi-condensed))
(buffer-face-mode)))
I want to achieve the same thing but for the org export dispatch ui, that is, the buffer that appears when exporting an Org file (by using org-export-dispatch
). While this window is active I can not use the describe-mode
or see the major-mode
so I don't know for which mode I should apply the settings.
I've tried this with no effect:
(defun my-buffer-face-mode-fixed ()
(interactive)
(setq buffer-face-mode-face '(:family "Hack" :height 130 :width semi-condensed))
(buffer-face-mode))
(add-hook 'org-export-before-parsing-hook 'my-buffer-face-mode-fixed)
As well as:
(add-hook 'org-export-stack-mode-hook 'my-buffer-face-mode-fixed)
It doesn't work.
What I was thinking was somehow set the font face for a buffer with a specific name, in that case the question is how to change the font face for the *Org Export Dispatcher*
buffer?
While looking about how to change the font on a per name basis I found this on the emacswiki:
(set-specifier (face-background (get-face 'default)) "blue"
(get-buffer "*scratch*"))
However the set-specifier
function is only available in XEmacs, how can I achieve the same thing in GNU Emacs 26.1?