home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!ames!decwrl!decwrl!ucbvax!math.cornell.edu!harelb
- From: harelb@math.cornell.edu (Harel Barzilai)
- Newsgroups: gnu.emacs.help
- Subject: ELISP Question ...and... "Ouch my fingers!"
- Message-ID: <9207240612.AA06371@tba.msi.cornell.edu>
- Date: 24 Jul 92 06:12:27 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Organization: misc.activism.progressive on UseNet ; ACTIV-L@UMCVMB
- Lines: 62
-
-
- For a batch-mode macro (I have the macro-to-elisp function), I need
- the command:
-
- if (register number ###) is equal to (string) then (insert-file (or whatever))
-
- and also
-
- if (register number ###) is NOT equal to (string) then (insert-file)
-
- (trivial modification, it will no doubt be, for the later, but it's
- possible to spend an hour figuring out the syntax of ()'s, "NOT" or "~" etc.)
-
- please CC replies --> harelb@math.cornell.edu
- Thanks
- ******************************************************************
-
- By the way, if anyone has a *brief* -- like 30K or less, say :-) --
- intro to elisp, I would greatly appreciate being emailed...I'm sure
- I'm not the only one who need/wants to know more but doesn't have the
- time/will to get the whole book (or online version(s) of). What would
- be really cool is maybe something of comprable size (50K, say) which
- gave, say, 10 sample functions, building up from simplest to more
- complex, in such a way (incl. comments) that if you read through them
- carefully you're understand the new features of the next emacs
- function.
-
- ...Then I'd be able to ask more advanced stupid lisp questions here (-:
- ******************************************************************
-
- Ok, to try to be USEFUL: I was just looking thru gnu.misc.discuss
- and was reminded of the old problem I had with pain in my pinky etc
- from hitting the <control> key all the time.
-
- Here's what has so far worker fairly well for me:
-
- I re-defined what for me are most of the more common commands:
-
- C-x C-f becomes M-M-f (find file)
-
- C-x C-s becomes M-M-s (save buffer)
-
- C-x b becomes M-M-b (switch buffer)
-
- and
-
- C-x k becomes M-M-k (kill buffer)
-
- ..and maybe a few others I forgot...
-
- since I don't use "eval" stuff since I don't do much lisp to say the
- least, there is no problem with not having what ESC-ESC used to be
- bound to, at least for me.
-
- I'd also be interested in hearing any other ideas/comments on this
- issue from others...
-
- Harel
-
- ******************************************************************
-
- Please CC replies to harelb@math.cornell.edu. Thanks.
-