home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / 12 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.3 KB

  1. Xref: sparky comp.unix:12 comp.unix.questions:10954 comp.unix.misc:3641 comp.unix.ultrix:6830
  2. Newsgroups: comp.unix,comp.unix.questions,comp.unix.misc,comp.unix.ultrix,cocomp.unix.wizards
  3. Path: sparky!uunet!haven.umd.edu!wam.umd.edu!ctso
  4. From: ctso@wam.umd.edu (CT Shock)
  5. Subject: Re: Help with defining the default Unix mail editor
  6. Message-ID: <1992Sep11.125619.10337@wam.umd.edu>
  7. Sender: usenet@wam.umd.edu (USENET News system)
  8. Nntp-Posting-Host: rac2.wam.umd.edu
  9. Organization: University of Maryland, College Park
  10. References: <1992Sep10.184854.19129@umbc3.umbc.edu>
  11. Date: Fri, 11 Sep 1992 12:56:19 GMT
  12. Lines: 30
  13.  
  14. In article <1992Sep10.184854.19129@umbc3.umbc.edu> williamf@umbc4.umbc.edu (TheBigBopper) writes:
  15. > I am a Unix novice so if anyone can help with this question please couch
  16. > your response as simply as you can to help me.
  17. >
  18. > I am attempting to mail a letter to someone.  I invoked Mail and used the
  19. > tilde ~r to include a file.  Next, I tried to edit the file using ~e  
  20. > Trouble is I keep getting a message saying permission denied.  I have checked
  21. > the PATH variable in the .cshrc file and the path indicated there is the 
  22. > correct one for Emacs (which is what I want to invoke).  I placed the
  23. > statement 'set EDITOR = /usr/local/bin/emacs in the .cshrc, logged out and 
  24. > in and tried again to edit the file from w/in mail w/o success.  I also tried
  25. > using setenv EDITOR /usr/local/bin/emacs and this string showed up in response
  26. > to the 'printenv' command but the mail editor still didn't default to emacs.
  27. > Is there some other way to alter the default editor in mail?  Curiously, the
  28. > same thing happens in News where the default editor's path points to VI.  I
  29. > can change this on the fly by just typing in the correct path in RN but the
  30. > same isn't true for mail.  If anyone can offer any help please e-mail me the
  31. > answer and I'll post a summary of the answer if it solves the problem.
  32. >  Thanks 
  33. >      TheBigBopper
  34.  
  35. Actually, it's pretty easy. Most mailers have two environmental variables.
  36. EDITOR and VISUAL. You need to set these variables from within mail.
  37. You can also set emacs as your default in an initialization file.
  38. (something like .mailrc in your home directory) do a 'man mail' or
  39. 'man sendmail', 'man mailx' or whatever... to learn more about it.
  40.  
  41.     -Todd
  42.  
  43.