[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
EMACS help needed
- To: bug-emacs%MIT-OZ@MIT-MC.ARPA
- Subject: EMACS help needed
- From: COLE@SRI-KL.ARPA
- Date: Tue 23 Aug 83 16:25:21-PDT
- Cc: klotz@MIT-MC.ARPA, cole@SRI-KL.ARPA
I have several questions related to emacs init and vars files
I would like to set up an emacs.init file such that:
1) it asks you what kind of terminal you are on
2) it runs appropriate other init or vars files for the kind of terminal
With the help of someone here, I have come up with the following:
@ftheath, vt100, or datamedia? (h or v or d): â
(q0 - â¡H) "e
@ftSetting to heath.â
m(m.m set terminal typeâ)heathâ
er heath-19 initâ @y :m(hfx*)'
(q0 - â¡D) "e
@ftSetting to dm2500.â
m(m.m set terminal typeâ)dm2500â
er dm2500 initâ @y :m(hfx*)'
(q0 - â¡V) "e
@ftSetting to vt100.â
m(m.m set terminal typeâ)vt100â
er vt100 initâ @y :m(hfx*)'
er emacs;emacs initâ ^y et@ >â
:m( hfx*( f]vbâ))
This allows the user to choose the terminal type, sets the terminal
type in emacs, and runs the appropriate init file.
One problem with the above (but relatively minor to me) is that if the
terminal type was not set correctly coming into emacs, the message
asking for the terminal type comes out garbled. Does anyone know how
to get the question to appear BEFORE emacs tries to draw the screen at
But what I really need to know is how do I get the emacs.init file to run
the user's appropriate VARS file? Putting in:
er vt100 varsâ @y :m(hfx*)'
doesn't do it.
Since I am more comfortable with vars files than with init files, I
was hoping to be able to write a vars file for the Zenith (Heath-19)
alternate keypad. However, the altkeypad sends characters like "ESC ? P".
I have the init file to redefine these, but I don't know how to
refer to these charcters in a vars file, so I can assign functions to
Here's part of the init file:
!* Declaring keystrokes:
m.m<command name><esc>U.<Ctrl-R><char> For Ctrl-<char>
m.m<command name><esc>U..<Ctrl-R><char> For Meta-<char>
m.m<command name><esc>U...<Ctrl-R><char> For Ctrl-Meta-<char>
m.m<command name><esc>U:.X(<Ctrl-^><char>) For Ctrl-X <char>
m.m<command name><esc>U:.X(<Ctrl-^><Ctrl-char>) For Ctrl-X Ctrl-<char>
m.m<command name><esc>U:.Y(<Ctrl-R><Ctrl-char>) For Meta-?-<char> !
128M(M.MMAKE PREFIX CHARACTERâ).YâU..â©?â
m.m^R GOTO ENDâU:.Y(â¡y)â !* 9 key !
eremacs;emacs initâ @y :m(hfx*) !* And run the normal emacs.init !
| "7" | "8" | "9" |
|BEGINNING| UP | END |
| OF FILE | LINE | OF FILE |
| "4" | "5" | "6" |
|BEGINNING| FILL | END |
| OF LINE |PARAGRAPH| OF LINE |
| "1" | "2" | "3" |
| PREVIOUS| DOWN | NEXT |
| SCREEN | LINE | SCREEN |
| "0" | "." | "ENTER" |
|BACKWARD | FORWARD | ^D |
| CHAR | CHAR | |
I have an "altkeypad.exe" file (from mit) that causes the Zenith to
use alternate keypad mode. I know that this is accomplished by
sending an ESC-= to the terminal, but I don't know how that sequence
is saved into a file and sent to the computer. Would someone send me
the source for altkeypad.exe?
Thanks for any help.