Emacs preparations

You can use any text editor that does not add more to the file than what you wrote in it.
If you already have a file ~/.emacs in your home directory, add the lines below to the end of the file.
If you do not have the file ~/.emacs, create it with the content below.

One editor you could use is emacs itself. You can do most commands (open/save file etc.) from the File menu on top.
You can get to the file we need with the command (issue it in a terminal window)

emacs ~/.emacs &
Add the lines below to the end of the file, and then save it. The settings take effect next time you start emacs (with emacs &). Some of these might already be active.

Make sure the last line ends with a RETURN.
Comment lines begin with a semicolon.


(add-hook 'text-mode-hook 'turn-on-auto-fill)
		; break lines at space when they are too long

(transient-mark-mode 1)
		; highlight the region whenever it is active

(add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)
		; notice password prompts and turn off echoing for them

(auto-compression-mode t)
		; uncompress files before displaying them

(global-font-lock-mode t)
		; use colors to highlight commands, etc.

(set-variable 'font-lock-maximum-decoration nil)
		; maximum-decoration set to nil to use the default
		;	decoration (typically the minimum available)
		; you can comment out this command with a semicolon
		; see mode-specific variations in the description of
		;	font-lock-maximum-decoration by typing
		;	C-h v font-lock-maximum-decoration RETURN

(setq tex-dvi-view-command "xdvi")
		; define the command to view DVI-files

(setq tex-dvi-print-command "dvips")
		; define the command to print DVI-files

(require 'tex-site)
		; invoke the AUCTeX package (LaTeX support)
		; this might be already activated