jeff@mit-eddie.UUCP (Jeff Mattson) (04/11/85)
I'd like to create an initialization file for GNU Emacs which will allow me to use the cursor keys on a VT100 to move around. I'd appreciate any answer or pointer to an answer (e.g. documenation I should have read) for these questions: o What do I name and where should I place an initialization file? o How do I specify a character in mlisp? o How do I declare Meta-[ to be a prefix character (like Control-X)? o What exactly does GLOBAL-SET-KEY expect for arguments? Finally, is there any documentation floating around for GNU Emacs other than what's available by running the HELP command? ---------------------------------------- Don't dream it; BE IT! ---------------------------------------- Jeff Mattson Jeff@MIT-Eddie 497-3980 (work) 424-7226 (home) 24 Westland Ave. #10 Boston, MA 02115
long@ittvax.UUCP (H. Morrow Long [Systems Center]) (04/16/85)
> I'd like to create an initialization file for GNU Emacs which will allow me > to use the cursor keys on a VT100 to move around. I'd appreciate any answer > or pointer to an answer (e.g. documenation I should have read) for these > questions: See the enclosed simple ~/.emacs. > > o What do I name and where should I place an initialization file? Unless you wish to use more than one version of emacs on your you can use the default ($HOME/.emacs) supplied. > o How do I specify a character in mlisp? I believe you just need strings for what you are trying to do. GNUemacs also allows C-style \xxx and mongrel style \^m constants within strings. > o How do I declare Meta-[ to be a prefix character (like Control-X)? (define-key global-map "\^[[" 'ESC-prefix) > o What exactly does GLOBAL-SET-KEY expect for arguments? > > Finally, is there any documentation floating around for GNU Emacs other > than what's available by running the HELP command? > The Unipress and CCA manuals are ok for concepts but be aware of the differences. There is a great deal of documentation with the distribution but it is disperse. The system is very self-documenting in operation - superb. I believe the ITS (similar - also written by Stallman) manual is available from the MIT-AI lab (the address is in one of the dist. docs). And Stallman is supposedly working on a GNUemacs manual. ;..........Very bare bones and DEC vt241-specific ~/.emacs follows. ; ; $Header: .emacs,v 1.1 85/04/15 18:23:36 long Exp $ ; $Log: .emacs,v $ ; Revision 1.1 85/04/15 18:23:36 long ; Initial revision ; ; Define cursor keys for DEC vt[12]00 (and ANSI std) terminals. ; (define-key global-map "\033[" 'ESC-prefix) (define-key global-map "\033[A" 'previous-line) (define-key global-map "\033[B" 'next-line) (define-key global-map "\033[C" 'forward-char) (define-key global-map "\033[D" 'backward-char) ; Keypad '0' key toggles overtype/insert modes. (define-key global-map "\033Op" 'overwrite-mode) -- H. Morrow Long ITT-ATC Systems Center, 1 Research Drive Shelton, CT 06484 Phone #: (203)-929-7341 x. 634 path = {allegra bunker ctcgrafx dcdvaxb dcdwest ucbvax!decvax duke eosp1 ittral lbl-csam milford mit-eddie psuvax1 purdue qubix qumix research sii supai tmmnet twg uf-cgrl wxlvax yale}!ittvax!long