home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3863 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.3 KB  |  36 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!mcsun!sunic!kth.se!news.kth.se!RICHARD
  3. From: RICHARD@CLYDE.ttt.kth.se
  4. Subject: Re: redefining keys --> Wrong type argument: commandp
  5. In-Reply-To: jwarring@violet.srg's message of 26 Aug 92 14:18:41 GMT
  6. Message-ID: <RICHARD.92Aug27175418@CLYDE.ttt.kth.se>
  7. Sender: usenet@kth.se (Usenet)
  8. Nntp-Posting-Host: clyde.ttt.kth.se
  9. Organization: Department of TeleTransmission Theory
  10. References: <JWARRING.92Aug26161841@violet.srg>
  11. Distribution: gnu.emacs.help
  12. Date: Thu, 27 Aug 1992 16:54:18 GMT
  13. Lines: 21
  14.  
  15. In article <JWARRING.92Aug26161841@violet.srg> jwarring@violet.srg (Jeff Warrington) writes:
  16.  
  17.  
  18.    (defun my-func()
  19.    "Something special"
  20.        (interactive)    ;; <--- YOU NEED THIS TO MAKE A COMMAND OF
  21.                     A FUNCTION
  22.        (other-window)
  23.        (rmail-get-new-mail)
  24.        (rmail-summary))
  25.  
  26.    (define-key rmail-summary-mode-map "g" 'my-func)
  27.  
  28. Now it will work.
  29. --
  30. !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
  31. ! Richard Levitte, System manager       ! tel: int+46-8-790 64 23           !
  32. ! Royal Institute of Technology         ! fax: int+46-8-791 76 54           !
  33. ! Department of Teletransmition Theory  ! Internet: richard@ttt.kth.se      !
  34. ! S-100 44 Stockholm, Sweden            !                                   !
  35. !---------------------------------------------------------------------------!
  36.