Enviroment: W7 x64
First, we download the Emacs windows version from http://www.gnu.org/software/emacs/
unzip the file to any folder u want, i unzip it to D: driver. The full path is D:\emacs-23.3
The running configure file .emacs dosen't exist when u first run emacs. This file is locate in C:/[USERHOME]/AppData/Roaming
If you can't create file .emacs, see following or use file name _emacs.
OK, the .emacs(_emacs) file is created, the next is configure the running enviroment.
1. Load another configure file
I do not like the default .emacs location, so i need load my own configure file from another path. The Emacs command load can do this. For example:
(load "f:/conf/emacs.conf")
2.My Emacs's options:
;;Full scree after start-up
(defun jbr-init ()
"Called from term-setup-hook after the default
terminal setup is
done or directly from startup if term-setup-hook not
used. The value
0xF030 is the command for maximizing a window."
(interactive)
(w32-send-sys-command #xf030)
;; (ecb-redraw-layout)
;; (calendar)
)
;;(setq term-setup-hook 'jbr-init)
(setq window-setup-hook 'jbr-init)
;;no default guide page.
(setq inhibit-splash-screen t)
;;disabling auto-save and backups
(setq backup-inhibited t)
(setq auto-save-default nil)
;;line number
(global-linum-mode 1)
;;no toolbar and menubar
(tool-bar-mode -1)
(menu-bar-mode -1)
3.Add the shortcut to the menu, like "Edit with..."
Create A .reg file, contains
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\emacs]
@="&Edit with Emacs"
[HKEY_CLASSES_ROOT\*\shell\emacs\command]
@="D:\\emacs-23.3\\bin\\runemacs.exe \"%1\""
then import the regedit file.