Article View: comp.windows.ms.programmer
Article #1699Re: A Good Windows Programmers Editor
From: Joel Spolsky
Date: Sun, 17 Mar 1991 19:50
Date: Sun, 17 Mar 1991 19:50
37 lines
1910 bytes
1910 bytes
In article <1991Mar17.161430.224@athena.mit.edu> mmshah@athena.mit.edu (Milan M Shah) writes:
>WRT uEmacs for Windows, I like it, but can't figure out how to:
>
>a) Repeat a search? In uEmacs for DOS, Alt-s would search for whatever I had
> searched before, but in uEmacs for Windows, I get a key not bound. I am
> using the same emacs.rc file that I used with uemacs for dos, and have not
> modified that original.
I figured out the answer to this. Turns out that in the DOS version,
you can bind to Alt-key combinations using "A-X" in the emacs.rc file,
for example:
bind-to-key previous-word A-B
But in the Windows you use "A-x" (lower case):
bind-to-key previous-word A-b
SO: since I am using the same emacs.rc for both, I just put both
bindings in there.
Another note: I found you can test for the DOS version as follows:
!if &seq $version "3.10"
; Whatever you want to do only on the DOS version, like
; setting colors or binding i-shell.
!endif
This way you can use the same emacs.rc for both setups. The Windows
version sets $version to "3.10e".
Finally, don't try "M-x describe-variables", it causes a UAE.
--
Joel Spolsky // And these streets, Quiet as a sleeping army
spolsky@cs.yale.edu // Send their battered dreams to heaven. _Paul Simon
Technical Details
Message-ID:
<29526@cs.yale.edu>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!spolsky-joelReferences:
<29514@cs.yale.edu> <29515@cs.yale.edu> <1991Mar17.161430.224@athena.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!spolsky-joel From: spolsky-joel@cs.yale.edu (Joel Spolsky) Newsgroups: comp.windows.ms.programmer Subject: Re: A Good Windows Programmers Editor Message-ID: <29526@cs.yale.edu> Date: 17 Mar 91 19:50:09 GMT References: <29514@cs.yale.edu> <29515@cs.yale.edu> <1991Mar17.161430.224@athena.mit.edu> Sender: news@cs.yale.edu Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 37 Nntp-Posting-Host: zoo-gw.cs.yale.edu Originator: spolsky@suned.CS.Yale.Edu