Return to Snippet

Revision: 16323
at July 30, 2009 22:57 by yenliangl


Updated Code
;; make a face
(make-face 'font-lock-small-face)
(set-face-attribute 'font-lock-small-face nil :height 0.5) ; have smaller font.

;; add this setting to all shell-mode buffers
(add-hook 'shell-mode-hook 
       '(lambda ()
          (font-lock-mode t)
          (buffer-face-mode t) ; only in emacs 23
          (buffer-face-set 'font-lock-small-face)
          ;; other stuff
      ))

Revision: 16322
at July 30, 2009 22:32 by yenliangl


Initial Code
;; make a face
(make-face 'font-lock-small-face)
(set-face-attribute 'font-lock-small-face nil :height 0.5) ; have smaller font.

Initial URL

                                

Initial Description

                                

Initial Title
Use a face in an Emacs buffer

Initial Tags

                                

Initial Language
Emacs Lisp