Installing EMACS

From Neural Wiki

Jump to: navigation, search

EMACS is a text editor that is extremely useful and compatible with all of the major platforms. Text editors are a must for creating and editing program files like FORTRAN, PYTHON, or PERL.

[edit] Installing EMACS on Windows

This was done using windows XP

1) download EMACS from ftp://ftp.gnu.org/gnu/emacs/windows/

  • I selected version 22.1 (the most recent version at this time) click here to download [1]
Picture 1
Picture 1

2) Once the file has downloaded, you need to extract the file.

  • Double click on the zipped folder you downloaded
  • Click the Extract all files link in the upper right hand side of the window
  • I chose to extract to c:\EMACS, but you can choose your own location
 (see picture 1) 

3) Once you have finished unzipping the file, open up your new folder, and then double click on the 'bin' folder

Picture 2
Picture 2

4) Then double click on the file called addpm. This will install EMACS and create a Gnu-Emacs folder from which you can launch emacs.

  (see picture 2)
Picture 3
Picture 3

5) To finish this all off and make EMACS accessible from the command prompt (trust me you will like this) go to START

 (I have attempted to illustrate this process in picture 3)

6) Click on control panel

7) Click on System

8) Go to the advanced tab

9) Click on Environment Variables (bottom middle)

10) There will be two windows; one on top of the other. Go to the bottom one, the one labeled system variables, and find the entry that says path.

11) highlight Path, and click edit.

12) Now we need to tell the computer where to find the execute file, which is located in the bin subfolder. so if you were like me, it is located in c:\EMACS\emacs-22.1\bin

13) DO NOT DELETE ANY PART OF THE PATH DIRECTORY!!! you will be very sad about that. Instead, add this to the very front of the string C:\EMACS\emacs-22.1\bin then put a semicolon after it if there were other files there first.

14) It should look like C:\EMACS\emacs-22.1\bin;C:\some_other_program...ect.

15) Now see if it worked. open up the command prompt. Go to START then RUN and then type in cmd and the command prompt will open

16) now type in emacs, and emacs should pop up.

17) to make a new file, or open an old one called new_file.f (FORTRAN) type in at the command prompt emacs new_file.f

18) have fun

Personal tools
Cool project