문제

When I'm running eshell (or shell) in emacs, I would like to have the default face be a different font (like Courrier) so that eshell looks more like a "normal" shell.

Looking through the Faces for emacs I see several eshell specific faces (for symlinks, directories, prompt, etc.), but I don't see anything for just the basic default face.

Google returns lots of results about customizing the actions of eshell, but very little about customizing its look.

도움이 되었습니까?

해결책

(defun my-buffer-face-mode-courrier ()
    (interactive)
    (setq buffer-face-mode-face '(:family "Courrier"))
    (buffer-face-mode))

(add-hook 'eshell-mode-hook 'my-buffer-face-mode-courrier)

This example is adapted from: http://www.emacswiki.org/emacs/FacesPerBuffer

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top