Installing Emacs on Windows 95/98/2K/NT/ME/XP
have successfully installed emacs (version 21.3) on Windows 95, 98, 2K, NT, ME, and XP using the instructions below. (I have not tried a Vista machine myself yet with these instructions, but I assume that the instructions here can easily be adapted to it. If you happen to try one, please let me know what you find out.)
Warning: This page is being maintained mainly for my students. Use these instructions at your own risk if you are not a student taking one of my classes. There is no warranty in any form or shape whatsoever! There is no guaranty that these instructions are up-to-date although I will update them for my students on an on-going basis. With that understanding, you may continue with the rest of this page if you choose to accept these terms.
This page was last updated some time in September 2005. Follow these steps to download Emacs for windows. There is no room for creativity here; you must follow the directions exactly. Please read every single word in this document.
- Pick the drive and a folder in which you want to install Emacs. I'll assume that it is C:\emacs, but you can choose a different one. If you choose a different drive or a different folder, you'll need to adapt the directions below accordingly.
- Create an empty folder C:\emacs. At the DOS prompt in the C: drive, type mkdir emacs.
- Download to C:\emacs\emacs-21.3-bin-i386.tar.gz by right-clicking on the link and using Save Link As... or Save Target As.... Or simply clicking on it would work as well here. It is about 13.2 megabytes. Make sure the entire file was downloaded without any network errors. The browser will save the file using the name that appears in the underlined link. (In some Windows XP machines it is known to use emacs-21.3-bin-i386.tar.tar instead as it downloads it. If that happens, change the name back to emacs-21.3-bin-i386.tar.gz before you continue. Note that your Windows Explorer may actually show emacs-21.3-bin-i386.tar by hiding that file extension (.gz) in which case you can actually change the settings so that it displays the extension. Try the Tools menu in your Windows Explorer and Folder Options. Then, the View menu and uncheck the Hide extensions for known file types and OK to keep the change.)
At this point, you should have one file named emacs-21.3-bin-i386.tar.gz of about 13.2 megabytes in the C:\emacs folder. Check to be sure.
- Click on that file using Windows Explorer to extract files from that archived file. Your extracted files should go into C:\emacs folder. Assuming that you already have a program installed in your machine that knows how to unpack the zipped file, you can click on it to extract the files. In my case I have PowerArchiver installed on my machine and that gets invoked automatically when I click on a zip file. PowerArchiver is available free. Chances are that you already have this program or something that works like that installed on your Windows machine. If there is no program that knows how to unpack the zip file, install before you continue. Once extraction is done, you will see a folder named emacs-21.3 under C:\emacs. Under emacs-21.3, you will see other folders including bin, etc, info, etc. At this point, you have downloaded and placed the files in the right places.
- Next, you will download a file that will customize your emacs a little so that it makes your editor screen easier to read with colors recognizing some standard file types that you will be editing, e.g., a Java program file. Download to C:\emacs\_emacs.txt by right-clicking on the link. Yes, the underscore character is part of the name. Use Save Link As... or Save Target As... Now, rename it to _emacs with Windows Explorer so that there is no .txt extension (or any other extension) as part of the file name. Remember that your Windows Explorer may not show the extension (.txt) even if it is actually there if your settings hid the extension? Change the settings to unhide the extension and remove it.
- Depending on the operating system that you use, choose one of the following paths:
- 95 or 98: edit your autoexec.bat file and add this line:
set HOME=C:\emacs\
You will probably find autoexec.bat on your C: drive. Edit it with Notepad. You can't edit it by clicking on it. Start Notepad and then open it with the File menu.
- 2K, ME, or XP: add HOME as an environment variable. Follow Start > Settings > Control Panel > System. Then select Advanced followed by Environment Variables. Then, add HOME as a user variable with its value C:\emacs\.
- NT: It works like 98 with the autoexec.bat file. I suspect it would work like 2K as well, but I have not tried it that way myself.
- Restart your machine.
- At this point, you might want to create an icon on your desktop for the Emacs that you just installed. Go to the C:\emacs\emacs-21.3\bin folder using Windows Explorer. There you will find a file named runemacs.exe. Create a shortcut to the desktop so that you can use it to run Emacs from the desktop. Now, you should be in business! If it doesn't work, you made a mistake in one of the steps above. Double and triple check.
- After you create the shortcut, you might want to change the default 'Start in' folder. Change it to whatever you like through the Properties menu of the icon.
- If you want to clean up a little, you may delete emacs-21.3-bin-i386.tar.gz at this point. You still need _emacs and emacs-21.3 in the C:\emacs folder though.
- To learn how to use Emacs, try Emacs Tutorial that you can find under the Help menu in the Emacs window. Or, if you want a simpler version, try that I wrote.
- [Only optionally because I wanted this to be a simple page that shows just enough to get started.] To learn how to customize Emacs or simply to see more help on it, try . (That site will talk about .emacs file, which is the unix/linux version of _emacs.) I am sure there are many other sources of information on emacs out there, but Paul Fiorillo found this site.
Maintained by (alee at cmc dot edu).
阅读(521) | 评论(0) | 转发(0) |