Use a face in an Emacs buffer


/ Published in: Emacs Lisp
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.