Lecture notes Friday 1/22/99
Editing with EMACS

Review

login, "startx", "netscape&", "xhost +"
in 2nd window: "telnet sun"
"cd cwis"
"less home.html" (q to quit)

Emacs basics (C = Ctrl, M = Esc key)

"emacs home.html&"
syntax highlighting: Help:Options:Toggle Global Font Lock
leaving: C-X C-C (i.e. hold down the CTR-key while hitting x, then c)
arrow keys, DEL key
saving: C-X C-S
menues: M-` (does not work on sun)
to get out of any command in echo area: C-g
Movement keys
C-f      Cursor forward
C-b      Cursor backward
C-p      Previous line
C-n      Next line
C-v      Next page
M-v      Previous page
M-<      Start of file
M->      End of file
Cutting and Pasting keys
C-k      Kill to end of line
C-SPACE  Set mark
C-w      Kill from mark to current cursor position
C-y      Paste killed text at current cursor position
C-x u    Undo last operation
Searching keys
C-s      Begin/repeat search
M-%      Query replace
File control keys
C-x C-f  Open file
C-x C-s  Save file
C-x C-k  Close file
C-x C-c  Exit emacs
Buffer control keys
C-x b    Switch to buffer
C-x C-b  List buffers
Window control keys
C-x 1    Eliminate other windows

Basic HTML...

File transfer

"ftp sun"
"put test.html cwis/test.html"
"quit"

Access permissions

"ls -l"
"chmod 644 me.jpeg"