If you still don't know what Emacs is, you can check it out; if you think that Notepad is already enough, or VS.NET 2003 is perfect, then the following content is not prepared for you.
To get the latest source code of Emacs, you can download ftp://ftp.gnu.org/emacs, but the recommended method is to download the latest source code through CVS. Use the following command:
Export cvs_rsh = "ssh" cvs -z3 -d: ext: anoncvs@savannah.gnu.org: / cvsroot / Emacs Co Emacs
The source code is quite complete, and the support for Win32 is also very good, at least do not need to compile LISP code under Linux. But it is still necessary to work before compilation, such as a command that needs to solve the CP, RM and other commands that appear in the makefile file. Using the Linux commands such as CP, RM in Makefile, we can install Microsoft's SFU toolbox or Cygwin system to get these tools. After you have these tools, you can start compiling. In addition, Windows compiles Makefile to use NMAKE tools, and you need to set up compiled environments, which should be simple. VC provides a configuration compilation environment batch file vsvars32.bat, under Common / Tools, if you can't find it, let's.
It can be started now. First, it is necessary to compile LISP source code, but before this, we set some options to generate makefile. Run vsvars32.bat using CMD, then enter the Emacs / NT directory, run:
Configure.bat --no-debug - no-cygwin --prefix f: / gnu / emacs --cflags -i./inc
Set to the Release version, the installation directory is F: / GNU / Emacs, the additional include directory is Emacs / NT / INC, where we will put some graphic supported header files. CONFIGURE.BAT /? Display help.
If you want to compile Emacs, you can display files in JPEG, TIFF, GIF, XPM, or want to have a beautiful toolbar, then you need to compile Emacs that supports the graphics library. Place the desired graphic library header or elsewhere, and then use -i to use -i to include it, and put their DLL file with the compiled Emacs. All graphics libraries can go to http://gnuwin32.sourceforge.NET/ download, including: JPEG (JConfig.h, jerror.h, jmorecfg.h, jpeglib.h), PNG (PNG.H, PNGconfg.h), TIFF (Tiff.h, Tiffconf.h, Tiffio.h, TiffVers.h), GIF (GIF_LIB.H), XPM (X11 / Simx.h, X11 / XPM.H), ZLIB (Zlib.h, Zconf.h ).
Set good options, we start compilation of the source code file. Really compiled from here:
NMAKE BOOTSTRAP
After several times, the prompt is replaced. If you see an Error word above the prompt, it is very unfortunate, your compilation may fail. At this time, choose to give up, or use other people's compilation results, it can be understood. If everything goes well, then congratulate, you have passed the most easy failure! Next
nmake
It is so simple. If you still do something, you can take a look at Readme or install, or do something else. OK, now I'm compiled, the next is installation.
NMAKE INSTALL
This will be installed to the path you set when configure, here is F: / GNU / Emacs. It has not yet finished yet.
The default, Emacs runs require an HOME environment variable; the default, if not found, set to C :. But my most hate software information is everywhere. Open Registry HKEY_LOCAL_MACHINE / SOFTWARE / GNU / Emacs, set home to F: / GNU / Emacs / Home, all profiles will be placed in this directory.
Also mentioned, the default makefile file is relatively conserved, only support to Win98, we can modify Win32_Winnt = 0x0500 in nmake.defs, allowing him to use some new features of the system after Win2K.