home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4350 < prev    next >
Encoding:
Text File  |  1992-08-20  |  2.0 KB  |  45 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!news
  3. From: Larry Margolis <margoli@watson.ibm.com>
  4. Subject: Re: Enhanced Editor & Rexx
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Aug20.195713.6320@watson.ibm.com>
  7. Date: Thu, 20 Aug 1992 19:57:13 GMT
  8. Reply-To: margoli@watson.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. Nntp-Posting-Host: lamail.watson.ibm.com
  11. Organization: The Village Waterbed
  12. Lines: 31
  13.  
  14. In  <13100001@tisdec.tis.tandy.com>  kevinl@tisdec.tis.tandy.com writes:
  15. >
  16. >      Is there any way to get the Enhanced editory to stop changing
  17. > the keys and tabs on me when it finds out that the file I'm editing is
  18. > a Rexx program (.cmd file)?  I really hate the way it messes up the enter
  19. > key.  I don't mind it adding the 'else', or 'then' key words, but I hate
  20. > the keys!
  21.  
  22. You can turn off syntax expansion with the command EXPAND OFF.
  23.  
  24. >      Also, is there any way I can get my options/preferences stuff
  25. > to take effect?  Right now I have my tabs set up for 4 spaces.  It doesn't
  26. > seem to care.  It inserts tabs, but they are eight space tabs.
  27.  
  28. Unfortunately, the tabs and margins for the languages with syntax assist
  29. are hard-coded.  One way to automatically take care of both would be via
  30. a profile - create a PROFILE.ERX containing the following:
  31.  
  32. /* EPM profile */
  33. if translate(right(arg(1),4))='.CMD' then do  /* If a .CMD file, */
  34.    'expand off'                /* turn off syntax expansion */
  35.    'postme tabs 4'             /* 'postme' delays the processing ... */
  36. end  /* Do */
  37.  
  38. (This should be in your PATH or EPMPATH.)  Then enable profile processing
  39. by entering the command Profile On in the EPM command dialog, then select
  40. Options / Save Options.  Note that the profile is only executed once, when
  41. an edit window is opened, so this will not apply when you're adding a .CMD
  42. file to an existing edit window.
  43.  
  44. Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
  45.