Invoke gnu Emacs with the command "emacs" on CS department DEC workstations.
;;; Define some cool actions for all of those function keys ;;; These keys mimick the editor I love, e (define-key global-map [f1] 'info) ; F1 (define-key global-map [f2] 'save-buffer) ; F2 (define-key global-map [f3] 'kill-emacs) ; F3
C-c C-f saves the buffer and then processes the file. C-c C-p prints the .dvi file made by any of these. C-c C-v previews the .dvi file made by any of these. C-c TAB runs bibtex on the file of the current buffer.
TAB c-indent-command
} c-electric-brace
{ c-electric-brace
; c-electric-semi&comma (insert comment)
Here are some examples:
C-c C-p html-add-preformatted (adds "pre" tags) C-c C-f html-add-fixed (adds "tt" tags) C-c s html-add-list (adds the UL tag with LI tag inside) C-c g html-add-img C-c C-r r html-add-reference-to-region C-c C-r l html-add-normal-link-to-region C-c a html-add-address
Here are some examples of other gdb-mode functions:
C-c C-b sets a breakpoint at the current file and line.
C-c C-d removes breakpoints on the current file and line.
C-x C-a C-l displays in the source window the last line referred to
in the gud buffer.
C-c C-s, C-c C-n, and C-c TAB do a step-one-line
(if (and (boundp 'emacs-version)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19")))
(error "This file was compiled for Emacs 19"))
To start the on-line tutorial, be sure that /usr/local/bin is on your path, and then type "emacs". The inital screen should give you instructions on running the tutorial:
GNU Emacs 19.22.3 of Wed Apr 20 1994 on sequoia.cs.vt.edu (berkeley-unix) Copyright (C) 1993 Free Software Foundation, Inc. Type C-h for help; C-x u to undo changes. (`C-' means use CTRL key.) To kill the Emacs job, type C-x C-c. Type C-h t for a tutorial on using Emacs. Type C-h i to enter Info, which you can use to read GNU documentation.
From the text above, type a control-h followed by a "t" to invoke the tutorial.
Click here to see the gnu Emacs reference card.