Elftown Emacs

This is a short description of how to use Emacs. Emacs be found on http://www.gnu.org/software/emacs/emacs.html but that doesn't seem to be that updated, and no Windows-version is found. Try Xemacs instead: http://ftp.us.xemacs.org/ftp/pub/xemacs/xemacs-21.4-windows/

What?

Emacs is used to edit textfiles, especially program code.

Notation

Notaion:  Meaning: 
  ^x     keep control down and press x
  M-x    keep left alt down and press x
         OR press escape and then x.

Mostly used commands

Search:  ^r (backwards) ^s (forwards). 
         Type some letters afterwards.
         Press ^r or ^s many times if you want!

Edit:  ^space AND THEN ^w cuts the text between the two
       places you typed that on.

       ^k deletes the rest of the raw. It can be used many
       times at ones and if you don't move between the ^k:s 
       all the deleted text will be in the same paste-buffert.

       ^y (yield) will insert all the copied or cut text.

Commands: M-x gives you a minibuffer at the button of the page
       that you can use to find a command. Press tab for all 
       commands.

Panic: ^g stops the current command. Good if you have a minibuffer
       that you don't want to use. 

Undo: ^_ undoes the last command. Can be pressed many times. Can also undo
      undoings if you move after the last undo.

No command: Press ^q to make the next pressing of ^something to not be 
       interpreted as a command.

Save:  ^x^s saves the current file in the same name. 
&      ^x^s saves the current file in another name.
load:  ^x^f loads a new file.

Moving: ^a (anfang?) moves to the beginning of the raw.
        ^e (end) moves to the end of the raw. 
        M-a moves to a more endish end... (depending on mode)

See:   ^l makes the cursor to be in the middle of the window.

Upper: M-u makes the rest of the word in upper case 
Lower: M-l makes the rest of the word in lower case 

Replace: M-x replace-string and M-x query-replace makes it possible
         to replace a string everywhere (from the current position). 

Mode: M-x c-mode gives you the c-mode.
      M-x fundamental-mode gives you the fundamental-mode.


Buffert: A buffert is a text. You can change between them with 
         ^x b. (Use tab to list all of them!)
         You can also reload texts with the ^x^f command and use
         arrow up to reload the last files. 
         M-x kill-buffert removes the current buffert from your
         current emacs-session.


Back to index