[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EMACS help needed



I have several questions related to emacs init and vars files


ONE:

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
   you select.

With the help of someone here, I have come up with the following:

@ftheath, vt100, or datamedia? (h or v or d): â—Š
@:fiu0 fi:fcu0'
(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
all?

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.


TWO:

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
them.  Help?

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  |         |
+-------------------+---------+
!


THREE:

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.

Susan Cole
-------