2008年5月21日 星期三

Customize GNU Emacs On Windows

1. Set " Home Directory ":
  • 「Start Menu」 -> 「Run」 -> Enter " regedit "
  • 「HKEY_CURRENT_USER \ Software \ GNU \ Emacs」(If not exist , your can add those keys by yourself),add a Value 「HOME」,fill in the path You want to use for Home Directory
  • Typing " C-x d ~/ " in Emacs to see if you have changed the Home Directory's location
2. Customize Emacs :
  • Create a file named " .emacs " in your Home Directory
  • Use this file to customize your Emacs with Emacs Lisp,I changed the background color and the font," M-x describe-font " is a useful command :)
  • following is my " .emacs "
(set-background-color "WhiteSmoke")
(set-face-font 'default "-outline-Bitstream Vera Sans Mono-normal-r-normal-normal-15-112-96-96-c-*-iso8859-1")

Reference:
Installing Emacs (GNU Emacs FAQ For MS Windows)
Emacs Lisp
(GNU Emacs Lisp Reference Manual)
Set Fonts (Emacs Wiki)

沒有留言: