Posted By

yenliangl on 07/30/09


Tagged

emacs


Versions (?)

Use a face in an Emacs buffer


 / Published in: Emacs Lisp
 

  1. ;; make a face
  2. (make-face 'font-lock-small-face)
  3. (set-face-attribute 'font-lock-small-face nil :height 0.5) ; have smaller font.
  4.  
  5. ;; add this setting to all shell-mode buffers
  6. (add-hook 'shell-mode-hook
  7. '(lambda ()
  8. (font-lock-mode t)
  9. (buffer-face-mode t) ; only in emacs 23
  10. (buffer-face-set 'font-lock-small-face)
  11. ;; other stuff
  12. ))

Report this snippet  

You need to login to post a comment.