home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4091 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.6 KB  |  57 lines

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!A.GP.CS.CMU.EDU!jkr
  2. From: jkr+@CS.CMU.EDU (Ken Rosenblatt)
  3. Newsgroups: gnu.emacs.help
  4. Subject: RMAIL questions
  5. Message-ID: <BuFGwv.K0K.2@cs.cmu.edu>
  6. Date: 11 Sep 92 19:02:55 GMT
  7. Article-I.D.: cs.BuFGwv.K0K.2
  8. Sender: news@cs.cmu.edu (Usenet News System)
  9. Organization: Carnegie Mellon University
  10. Lines: 44
  11. Nntp-Posting-Host: a.gp.cs.cmu.edu
  12.  
  13. There are a couple of default behaviors I would like to add or modify:
  14.  
  15. (1) I would like to have Re: at the beginning of my subject field
  16.     when replying to a message, as is the convention.
  17.  
  18. (2) I would like to be able to reply to just the sender.
  19.  
  20. My poor-man's solution to (1) is to define an awkward macro
  21. and assign it to a key sequence to be invoked manually:
  22.  
  23. (defun define-mail-keys ()
  24.   ;adds Re: to subject
  25.   (define-key mail-mode-map "\C-cr" "\C-c\C-f\C-s\C-a\M-f\C-f Re:")
  26.   ;adds jkr to bcc field
  27.   (define-key mail-mode-map "\C-cb" "\C-c\C-f\C-bjkr")
  28. )
  29.  
  30. (setq mail-mode-hook (function define-mail-keys))
  31.  
  32.  
  33. My solution to (2) is also an awkward macro assign to a key,
  34. which I am satisfied with, but would like to make sure I'm
  35. not missing a simpler, more elegant way to do this:
  36.  
  37. (defun define-rmail-keys ()
  38.   ;reply to sender, stripping of the CC field
  39.   (define-key rmail-mode-map "R" "r\C-c\C-f\C-c\C-\ \C-rCC:\C-a\C-w\C-d")
  40. )
  41.  
  42. (setq rmail-mode-hook (function define-rmail-keys))
  43.  
  44.  
  45. Thanks,
  46. Ken
  47.  
  48. -- 
  49.  
  50. Julio Ken Rosenblatt                Carnegie Mellon University
  51. jkr@cs.cmu.edu                    Robotics Institute
  52. Voice:    (412) 268-3084                5000 Forbes Avenue
  53. Fax:    (412) 621-1970                Pittsburgh, PA 15213-3891
  54.  
  55.  
  56.     Practice random kindness and senseless acts of beauty.
  57.