home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3469 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.1 KB  |  35 lines

  1. Path: sparky!uunet!haven.umd.edu!purdue!yuma!lamar!ryanr
  2. From: ryanr@lamar.ColoState.EDU (Richard Ryan)
  3. Newsgroups: gnu.emacs.help
  4. Subject: adding new functions
  5. Message-ID: <Jul23.203033.61716@yuma.ACNS.ColoState.EDU>
  6. Date: 23 Jul 92 20:30:33 GMT
  7. Sender: news@yuma.ACNS.ColoState.EDU (News Account)
  8. Distribution: gnu
  9. Organization: Colorado State University, Fort Collins, CO  80523
  10. Lines: 23
  11.  
  12.  
  13. Hi,
  14.  
  15. I'm trying to figure out add a new  function.
  16. I tried putting the following in a file I've loaded
  17. with load-file and I've also tried putting it in
  18. the .emacs file.
  19. (defun gt-indent-region ()
  20.   (shell-command-on-region 4 "sed -e '/^\(.\)/s//> \1/'"))
  21.  
  22. Although I'm not very certain this would work, I can't even
  23. try it out if I can't load it.  When I try executing it after
  24. loading the file it's in I get a "No match" message.  I've
  25. looked in the FAQ's, but I couldn't find this question there.
  26. Funny, it seemed like an FAQ kind of thing to me.
  27.  
  28. Also, what I'm trying to do with this command is put a "> "
  29. in the left margin.  If you've got a better function, please
  30. send me a copy.
  31.  
  32. Thanks,
  33. Richard.
  34. ..
  35.