home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!A.GP.CS.CMU.EDU!jkr
- From: jkr+@CS.CMU.EDU (Ken Rosenblatt)
- Newsgroups: gnu.emacs.help
- Subject: RMAIL questions
- Message-ID: <BuFGwv.K0K.2@cs.cmu.edu>
- Date: 11 Sep 92 19:02:55 GMT
- Article-I.D.: cs.BuFGwv.K0K.2
- Sender: news@cs.cmu.edu (Usenet News System)
- Organization: Carnegie Mellon University
- Lines: 44
- Nntp-Posting-Host: a.gp.cs.cmu.edu
-
- There are a couple of default behaviors I would like to add or modify:
-
- (1) I would like to have Re: at the beginning of my subject field
- when replying to a message, as is the convention.
-
- (2) I would like to be able to reply to just the sender.
-
- My poor-man's solution to (1) is to define an awkward macro
- and assign it to a key sequence to be invoked manually:
-
- (defun define-mail-keys ()
- ;adds Re: to subject
- (define-key mail-mode-map "\C-cr" "\C-c\C-f\C-s\C-a\M-f\C-f Re:")
- ;adds jkr to bcc field
- (define-key mail-mode-map "\C-cb" "\C-c\C-f\C-bjkr")
- )
-
- (setq mail-mode-hook (function define-mail-keys))
-
-
- My solution to (2) is also an awkward macro assign to a key,
- which I am satisfied with, but would like to make sure I'm
- not missing a simpler, more elegant way to do this:
-
- (defun define-rmail-keys ()
- ;reply to sender, stripping of the CC field
- (define-key rmail-mode-map "R" "r\C-c\C-f\C-c\C-\ \C-rCC:\C-a\C-w\C-d")
- )
-
- (setq rmail-mode-hook (function define-rmail-keys))
-
-
- Thanks,
- Ken
-
- --
-
- Julio Ken Rosenblatt Carnegie Mellon University
- jkr@cs.cmu.edu Robotics Institute
- Voice: (412) 268-3084 5000 Forbes Avenue
- Fax: (412) 621-1970 Pittsburgh, PA 15213-3891
-
-
- Practice random kindness and senseless acts of beauty.
-