home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / emacs / 3046 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  40 lines

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