home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / epmmac.zip / EXTRA.E < prev    next >
Text File  |  1995-10-17  |  8KB  |  286 lines

  1. const SMALL = 0            -- SMALL says to assume no host support.
  2. include    'stdconst.e'
  3.  
  4. include    'colors.e'      -- Mnemonic color names & default colors defined here.
  5.  
  6. define INCLUDING_FILE = 'EXTRA.E'
  7. const                      -- (added because many users omit from MYCNF.)
  8. tryinclude 'mycnf.e'       -- User configuration goes here.
  9.  compile if not defined(SITE_CONFIG)
  10.     const SITE_CONFIG = 'SITECNF.E'
  11.  compile endif
  12.  compile if SITE_CONFIG
  13.     tryinclude SITE_CONFIG
  14.  compile endif
  15.  
  16. const
  17. compile if not defined(EPATH)
  18.   compile if EPM    -- EPM uses a different name, for easier coexistance
  19.    EPATH= 'epmpath'
  20.   compile else
  21.    EPATH= 'epath'
  22.   compile endif
  23. compile endif
  24. compile if EPM
  25.  compile if not defined(WANT_DYNAMIC_PROMPTS)
  26.    WANT_DYNAMIC_PROMPTS = 1
  27.  compile endif
  28. compile else
  29.    WANT_DYNAMIC_PROMPTS = 0  -- Must be 0 for earlier EPM
  30. compile endif
  31. compile if EPM
  32.  compile if not defined(WANT_BOOKMARKS)
  33.    WANT_BOOKMARKS = 'LINK'
  34.  compile endif
  35. compile if EPM
  36.  compile if not defined(CHECK_FOR_LEXAM)
  37.    CHECK_FOR_LEXAM = 0
  38.  compile endif
  39. compile else
  40.    CHECK_FOR_LEXAM = 0
  41. compile endif
  42.  compile if not defined(MOUSE_SUPPORT)
  43.    MOUSE_SUPPORT = 1
  44.  compile endif
  45. compile else
  46.    WANT_BOOKMARKS = 0
  47.    MOUSE_SUPPORT = 0
  48. compile endif
  49. compile if not defined(VANILLA)
  50.    VANILLA = 0
  51. compile endif
  52. compile if not defined(ALTERNATE_KEYSETS)
  53.    ALTERNATE_KEYSETS = 1
  54. compile endif
  55. compile if not defined(C_SYNTAX_ASSIST)
  56.    C_SYNTAX_ASSIST = 1
  57. compile endif
  58. compile if not defined(CPP_SYNTAX_ASSIST)
  59.    CPP_SYNTAX_ASSIST = C_SYNTAX_ASSIST
  60. compile endif
  61. compile if not defined(E_SYNTAX_ASSIST)
  62.    E_SYNTAX_ASSIST = 1
  63. compile endif
  64. compile if not defined(REXX_SYNTAX_ASSIST)
  65.    REXX_SYNTAX_ASSIST = 0
  66. compile endif
  67. compile if not defined(P_SYNTAX_ASSIST)
  68.    P_SYNTAX_ASSIST = 1
  69. compile endif
  70. compile if not defined(SYNTAX_INDENT)
  71.    SYNTAX_INDENT = 3
  72. compile endif
  73.  
  74. compile if not defined(DECIMAL)
  75.    DECIMAL = '.'
  76. compile endif
  77. compile if not defined(SORT_TYPE)
  78.  compile if EVERSION >= '5.60'       -- At long last - an internal sort.
  79.   SORT_TYPE = 'EPM'
  80.  compile else
  81.   SORT_TYPE = 'DLL'
  82.  compile endif
  83. compile endif
  84. compile if not defined(WANT_CHAR_OPS)
  85.    WANT_CHAR_OPS = 1
  86. compile endif
  87. compile if not defined(USE_APPEND)
  88.    USE_APPEND = 0
  89. compile endif
  90. compile if not defined(WANT_SEARCH_PATH)
  91.    WANT_SEARCH_PATH = 1                  -- Different from STDCNF; assuming more room free.
  92. compile endif
  93. compile if not defined(WANT_GET_ENV)
  94.    WANT_GET_ENV = 1
  95. compile endif
  96. compile if not defined(INCLUDE_MATHLIB)
  97.    INCLUDE_MATHLIB = 0                   -- Included anyway when EXTRA_EX is true.
  98. compile endif
  99. compile if not defined(RESTORE_MARK_AFTER_SORT)
  100.    RESTORE_MARK_AFTER_SORT = 1
  101. compile endif
  102. compile if not defined(WANT_DM_BUFFER)
  103.    WANT_DM_BUFFER = 0
  104. compile endif
  105. compile if not defined(WANT_STREAM_MODE)
  106.    WANT_STREAM_MODE = 0
  107. compile endif
  108. compile if not defined(ENHANCED_ENTER_KEYS)
  109.    ENHANCED_ENTER_KEYS = 0
  110. compile endif
  111. compile if not defined(WANT_STACK_CMDS)
  112.    WANT_STACK_CMDS = 0
  113. compile endif
  114. compile if not defined(WANT_CUA_MARKING)
  115.    WANT_CUA_MARKING = 0
  116. compile endif
  117. compile if not defined(WANT_DBCS_SUPPORT)
  118.    WANT_DBCS_SUPPORT = 0
  119. compile endif
  120. compile if not defined(RING_OPTIONAL)
  121.    RING_OPTIONAL = 0
  122. compile endif
  123. compile if not defined(BLOCK_ACTIONBAR_ACCELERATORS)
  124.    BLOCK_ACTIONBAR_ACCELERATORS = 1
  125. compile endif
  126. compile if not defined(SUPPORT_BOOK_ICON)
  127. ;compile if EVERSION < '5.50'
  128.    SUPPORT_BOOK_ICON = 1
  129. ;compile else
  130. ;  SUPPORT_BOOK_ICON = 0  -- EPM/G has no book (yet)
  131. ;compile endif
  132. compile endif
  133. compile if not defined(WANT_ALL)
  134.    WANT_ALL = 0
  135. compile endif
  136. compile if not defined(EXTRA_EX)
  137.    EXTRA_EX = 1                    -- Different than STDCNF.E; but since this *is* EXTRA.E, ...
  138. compile endif
  139. compile if not defined(WANT_KEYWORD_HELP)
  140.    WANT_KEYWORD_HELP = 0
  141. compile endif
  142. compile if not defined(WANT_REXX)
  143.    WANT_REXX = 1
  144. compile endif
  145. compile if not defined(MENU_LIMIT)
  146.    MENU_LIMIT = 0
  147. compile endif
  148. compile if not defined(SPELL_SUPPORT)
  149.  compile if EPM
  150.    SPELL_SUPPORT = 'DYNALINK'          -- New default
  151.  compile else
  152.    SPELL_SUPPORT = 0
  153.  compile endif
  154. compile endif
  155. compile if not defined(ENHANCED_PRINT_SUPPORT)
  156.    ENHANCED_PRINT_SUPPORT = 0
  157. compile endif
  158. compile if not defined(WANT_EPM_SHELL) or EVERSION < '5.20'
  159.    WANT_EPM_SHELL = 0
  160. compile endif
  161. compile if not defined(EPM_SHELL_PROMPT)
  162.    EPM_SHELL_PROMPT = '@prompt epm: $p $g'
  163. compile endif
  164. compile if not defined(WANT_BRACKET_MATCHING)
  165.    WANT_BRACKET_MATCHING = 0
  166. compile endif
  167. compile if not defined(DEFAULT_PASTE) & EPM
  168.    DEFAULT_PASTE = 'C'
  169. compile endif
  170. compile if not defined(INCLUDE_MENU_SUPPORT)
  171.    INCLUDE_MENU_SUPPORT = 1
  172. compile endif
  173. compile if not defined(INCLUDE_STD_MENUS)
  174.    INCLUDE_STD_MENUS = 1
  175. compile endif
  176. compile if not defined(INCLUDE_WORKFRAME_SUPPORT)
  177.    INCLUDE_WORKFRAME_SUPPORT = 1
  178. compile endif
  179. compile if not defined(WANT_EBOOKIE)
  180.    WANT_EBOOKIE = 'DYNALINK'
  181. compile endif
  182. compile if not defined(WANT_TREE)
  183.    WANT_TREE = 'DYNALINK'
  184. compile endif
  185. compile if not defined(WANT_APPLICATION_INI_FILE)
  186.    WANT_APPLICATION_INI_FILE = 1
  187. compile endif
  188. compile if EVERSION < '5.60' | not defined(WANT_TAGS)
  189.    WANT_TAGS = 0
  190. compile endif
  191. compile if not defined(WANT_NODISMISS_MENUS)
  192.    WANT_NODISMISS_MENUS = 1
  193. compile endif
  194. compile if not defined(SUPPORT_USERS_GUIDE)
  195.    SUPPORT_USERS_GUIDE = 0
  196. compile endif
  197. compile if not defined(SUPPORT_TECHREF)
  198.    SUPPORT_TECHREF = 0
  199. compile endif
  200. compile if EVERSION >= 6 and not defined(WANT_TOOLBAR)
  201.    WANT_TOOLBAR = 1
  202. compile elseif EVERSION < 6
  203.    WANT_TOOLBAR = 0  -- Toolbar only supported for EPM 6.00 & above.
  204. compile endif
  205. compile if not defined(NLS_LANGUAGE)
  206.   const NLS_LANGUAGE = 'ENGLISH'
  207. compile endif
  208.    include NLS_LANGUAGE'.e'
  209.  
  210. compile if EVERSION > 5
  211.    include 'menuhelp.H'
  212.  compile if INCLUDE_MENU_SUPPORT & INCLUDE_STD_MENUS
  213.   compile if defined(STD_MENU_NAME)
  214.    compile if STD_MENU_NAME = 'STDMENU.E'
  215.    *** Error:  Leave STD_MENU_NAME undefined to use the original menu layout (STDMENU.E).
  216.    compile endif
  217.    include    STD_MENU_NAME   -- Action bar menus for EPM.
  218.   compile else
  219.    include    'stdmenu.e'     -- Action bar menus for EPM.
  220.   compile endif
  221.  compile endif
  222.  compile if WANT_BOOKMARKS
  223.    include 'bookmark.e'
  224.  compile endif
  225.  compile if WANT_TAGS = 1
  226.    include 'tags.e'
  227.  compile endif
  228.  compile if MOUSE_SUPPORT
  229.    include 'mouse.e'
  230.  compile endif
  231.    include 'clipbrd.e'     -- Clipboard interface and mark <--> buffer routines
  232.    include 'EPM_EA.E'
  233. compile endif
  234.    include  'markfilt.e'
  235.    include  'charops.e'     -- Mark operations for character marks.
  236.    include  'dosutil.e'
  237.    include  'math.e'
  238. compile if SORT_TYPE
  239.    include 'sort'SORT_TYPE'.e' -- SORTE, SORTG, SORTF, SORTGW, SORTDLL, SORTDOS.E.
  240. compile endif
  241. compile if WANT_ALL
  242.    include 'ALL.E'         -- Shows all occurrences of a string.
  243. compile endif
  244. compile if WANT_TREE = 1
  245.   include 'tree.e'
  246. compile endif
  247. compile if WANT_KEYWORD_HELP
  248.   include 'KWhelp.e'
  249. compile endif
  250. compile if WANT_EPM_SHELL
  251.   include 'epmshell.e'
  252. compile endif
  253. compile if EVERSION >= '5.50' & WANT_REXX
  254.   include 'callrexx.e'
  255. compile endif
  256. compile if WANT_BRACKET_MATCHING
  257.   include 'assist.e'
  258. compile endif
  259. compile if WANT_EBOOKIE = 1
  260.   include 'bkeys.e'
  261. compile endif
  262. compile if ALTERNATE_KEYSETS
  263.  compile if C_SYNTAX_ASSIST
  264.    tryinclude 'ckeys.e' -- Syntax-assist for C programmers.
  265.  compile endif
  266.  compile if E_SYNTAX_ASSIST
  267.    tryinclude 'ekeys.e' -- Syntax-assist for E programmers.
  268.  compile endif
  269.  compile if REXX_SYNTAX_ASSIST
  270.    tryinclude 'rexxkeys.e' -- Syntax-assist for Rexx programmers.
  271.  compile endif
  272.  compile if P_SYNTAX_ASSIST
  273.    tryinclude 'pkeys.e' -- Syntax-assist for Pascal programmers.
  274.  compile endif
  275. compile endif
  276.  
  277. compile if not VANILLA
  278.  compile if defined(SITE_EXTRA)
  279.     compile if SITE_EXTRA
  280.        include SITE_EXTRA
  281.     compile endif
  282.  compile endif
  283. tryinclude 'myextra.e'
  284. compile endif
  285.  
  286.