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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!splinter.coe.northeastern.edu!ratinox
  3. From: ratinox@splinter.coe.northeastern.edu (Richard Pieri/Stainless Steel Rat)
  4. Subject: dired rmail
  5. Message-ID: <gnusenetRATINOX.92Sep7152305@splinter.coe.northeastern.edu>
  6. Followup-To: gnu.emacs
  7. Sender: gnulists@ai.mit.edu
  8. Reply-To: ratinox@meceng.coe.northeastern.edu
  9. Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
  10. Date: Mon, 7 Sep 1992 19:23:05 GMT
  11. Lines: 25
  12.  
  13. A while back, someone asked about being able to run Rmail on a file in a
  14. dired mode buffer. So I was hacking around and figured it couldn't be that
  15. difficult to do, so...
  16.  
  17. (defun dired-rmail ()
  18.   "Run Rmail on this file."
  19.   (interactive)
  20.   (rmail-input (dired-get-filename)))
  21.  
  22. It can be bound to "R" inside dired-mode hook with
  23.  
  24. (setq dired-mode-hook
  25.       (local-set-key "R" 'dired-rmail))
  26.  
  27. --Rat
  28.  
  29. ||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
  30.                                                    __        ___ 
  31. Richard Pieri, Northeastern's Stainless Steel Rat/   | /| / /   | The Worlds
  32. Internet: ratinox@meceng.coe.northeastern.edu   /__  |/ |/ / /| | Welfare Works
  33.     UUCP: ...!northeastern.edu!meceng!ratinox  /   | /| / / / | | Association:
  34.   BITNET: UA_RLP@NUHUB{.BITNET}               /__  |/ |/ / /  | | I will solve
  35.   USNail: 14 Westdale RD  Holbrook, MA 02343 /   | /| / / /___| | any problem
  36.  ICBMnet: 42 deg 1 min N, 71 deg 0 min W    /    |/ |/ /_//_____| for you.
  37.  
  38.