home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!purdue!yuma!lamar!ryanr
- From: ryanr@lamar.ColoState.EDU (Richard Ryan)
- Newsgroups: gnu.emacs.help
- Subject: adding new functions
- Message-ID: <Jul23.203033.61716@yuma.ACNS.ColoState.EDU>
- Date: 23 Jul 92 20:30:33 GMT
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Distribution: gnu
- Organization: Colorado State University, Fort Collins, CO 80523
- Lines: 23
-
-
- Hi,
-
- I'm trying to figure out add a new function.
- I tried putting the following in a file I've loaded
- with load-file and I've also tried putting it in
- the .emacs file.
- (defun gt-indent-region ()
- (shell-command-on-region 4 "sed -e '/^\(.\)/s//> \1/'"))
-
- Although I'm not very certain this would work, I can't even
- try it out if I can't load it. When I try executing it after
- loading the file it's in I get a "No match" message. I've
- looked in the FAQ's, but I couldn't find this question there.
- Funny, it seemed like an FAQ kind of thing to me.
-
- Also, what I'm trying to do with this command is put a "> "
- in the left margin. If you've got a better function, please
- send me a copy.
-
- Thanks,
- Richard.
- ..
-