home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3480 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  2.4 KB

  1. Path: sparky!uunet!stanford.edu!ames!decwrl!decwrl!ucbvax!math.cornell.edu!harelb
  2. From: harelb@math.cornell.edu (Harel Barzilai)
  3. Newsgroups: gnu.emacs.help
  4. Subject: ELISP Question ...and... "Ouch my fingers!"
  5. Message-ID: <9207240612.AA06371@tba.msi.cornell.edu>
  6. Date: 24 Jul 92 06:12:27 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Organization: misc.activism.progressive on UseNet ; ACTIV-L@UMCVMB
  9. Lines: 62
  10.  
  11.  
  12. For a batch-mode macro (I have the macro-to-elisp function), I need
  13. the command:
  14.  
  15. if (register number ###) is equal to (string) then (insert-file (or whatever))
  16.  
  17. and also
  18.  
  19. if (register number ###) is NOT equal to (string) then (insert-file)
  20.  
  21. (trivial modification, it will no doubt be, for the later, but it's
  22. possible to spend an hour figuring out the syntax of ()'s, "NOT" or "~" etc.)
  23.  
  24. please CC replies --> harelb@math.cornell.edu
  25. Thanks
  26. ******************************************************************
  27.  
  28. By the way, if anyone has a *brief* -- like 30K or less, say :-) --
  29. intro to elisp, I would greatly appreciate being emailed...I'm sure
  30. I'm not the only one who need/wants to know more but doesn't have the
  31. time/will to get the whole book (or online version(s) of). What would
  32. be really cool is maybe something of comprable size (50K, say) which
  33. gave, say, 10 sample functions, building up from simplest to more
  34. complex, in such a way (incl. comments) that if you read through them
  35. carefully you're understand the new features of the next emacs
  36. function.
  37.  
  38. ...Then I'd be able to ask more advanced stupid lisp questions here (-:
  39. ******************************************************************
  40.  
  41. Ok, to try to be USEFUL: I was just looking thru gnu.misc.discuss
  42. and was reminded of the old problem I had with pain in my pinky etc
  43. from hitting the <control> key all the time.
  44.  
  45. Here's what has so far worker fairly well for me:
  46.  
  47. I re-defined what for me are most of the more common commands:
  48.  
  49. C-x C-f becomes M-M-f (find file)
  50.  
  51. C-x C-s becomes M-M-s (save buffer)
  52.  
  53. C-x  b  becomes M-M-b (switch buffer)
  54.  
  55. and
  56.  
  57. C-x k becomes M-M-k (kill buffer)
  58.  
  59. ..and maybe a few others I forgot...
  60.  
  61. since I don't use "eval" stuff since I don't do much lisp to say the
  62. least, there is no problem with not having what ESC-ESC used to be
  63. bound to, at least for me.
  64.  
  65. I'd also be interested in hearing any other ideas/comments on this
  66. issue from others...
  67.  
  68. Harel
  69.  
  70. ******************************************************************
  71.  
  72. Please CC replies to harelb@math.cornell.edu. Thanks.
  73.