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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!srg!srg!jwarring
  3. From: jwarring@violet.srg (Jeff Warrington)
  4. Subject: redefining keys --> Wrong type argument: commandp
  5. Organization: ARINC Research
  6. Distribution: gnu.emacs.help
  7. Date: 26 Aug 92 16:18:41
  8. Message-ID: <JWARRING.92Aug26161841@violet.srg>
  9. Sender: news@srg.srg.af.mil (Usenet news user)
  10. Lines: 25
  11.  
  12. I seem to be having trouble binding keys to my own functions.  I keep
  13. getting that error (mentioned in the Subject-line) followed by the
  14. name of the "function" I wrote.
  15.  
  16. I can't find the answer anywhere (info-mode,example el files,printed manual)
  17. Here what my .emacs file looks like...
  18.  
  19. ...
  20. (defun my-func()
  21. "Something special"
  22.     (other-window)
  23.     (rmail-get-new-mail)
  24.     (rmail-summary))
  25.  
  26. (define-key rmail-summary-mode-map "g" 'my-func)
  27.  
  28. Any/All help appreciated.
  29. Jeff Warrington
  30.  
  31. --
  32. blah blah blah blah blah blah blah blah
  33.      uunet.uu.net!srg!jwarring
  34. blah blah blah blah blah blah blah blah
  35. blah blah blah blah blah blah blah blah
  36.          Jeff Warrington
  37.