if (BATCH == 0)
{
%----------------------------------------------------------------------
%  Keybindings  (not loaded for batch processes)
   () = evalfile("emacs");           % Emacs-like bindings

   setkey("help_prefix", "^H");
   setkey("compile", "^X^E");
   setkey("compile_parse_errors", "^X^N");
   setkey("compile_previous_error", "^X^P");
   unsetkey("\eS");
   CASE_SEARCH = 1;
   setkey("re_search_forward", "\eS");
   setkey("re_search_backward", "\eR");
   setkey("find_tag", "^]");
   setkey("format_paragraph", "\ej");
   setkey("query_replace_match", "\er");
   setkey("insert_char(9)", "\e^I");
   setkey("goto_line_cmd", "\eg");
   setkey("page_down", "\e[U");
   setkey("page_up", "\e[V");
   setkey("del", "\e[P");
} %BATCH

%%%%%%%%%%%%%%%% top menu bar %%%%%%%%%%%%%%%

% To disable it, uncomment the next line.
enable_top_status_line (0);


%----------------------------------------------------------------------
% JED global variables  --- defaults shown
%
#ifdef VMS UNIX
USE_ANSI_COLORS = 1;    % if non-zero, JED will display colors on a color
                        % terminal (Unix and VMS only) See doc/color.txt 
                        % for more discussion and look below for setting
                        % the colors.
#endif
No_Backups = 0;         % If non-zero, backup files will not be created.
Startup_With_File = 0;  % if greater then zero, force JED to prompt for a file
                        %   if none is specified on the command line.  If 
                        %   negative, inhibit startup message.
DISPLAY_TIME    = -1;   % non-zero enables the time to be displayed on 
                        %  status line, zero disables it.  If this value
                        %  is -1, 24 hour time will be used.
HIGHLIGHT	= 1;	% non-zero for region highlighting
WANT_SYNTAX_HIGHLIGHT = 1;
                        % Highlight syntax in C, Fortran, and TeX modes.
                        % See section on colors
                        %  below for choosing how to highlight.  On Unix and 
                        %  VMS systems, USE_ANSI_COLORS must also be non-zero.
HORIZONTAL_PAN	= 20;	% if zero, no automatic panning.  If positive, only
                        % the current line is panned.  If negative, pan window.

LINENUMBERS	= 2;	% A value of zero means do NOT display line number on 
                    % status line line.  A value of 1, means to display
                    % the linenumber. A value greater than 1 will also
        			% display column number information.  I recommend a 
			        % value of 2 only at high baud rates

BLINK		= 1;	% if non zero, blink matching parenthesis
TAB_DEFAULT	= 8;	% Tab size  (also try edit_tab_stops)
WRAP		= 70;	% wrap column
ADD_NEWLINE	= 0;	% add newline to file when writing if one not present
IGNORE_BEEP	= 3;	% Beep terminal during error messages---
                        %  1 == sound only, 2 = visible bell only, 3 = both
_traceback	= 1;	% Non zero means dump traceback on S-Lang errors
WRAP_INDENTS	= 0;	% Non zero indents next line after wrapping current.
			%  Make this a 1 if you want indented text mode.
KILL_LINE_FEATURE = 0;
			% If non-zero, kill line will kill through end of the 
			%  line if Point is at the beginning of the line. For
			%  emacs-like behavior, set this to zero.
REPLACE_PRESERVE_CASE = 1;  % If non-zero, replace operations will attempt to
                            % match the case of the replaced string.

%---------------------------------------------------------------------------
% C-mode variables:
%---------------------------------------------------------------------------
C_INDENT	= 8;	% amount of space to indent within block.
C_BRACE		= 0;	% amount of space to indent brace
C_BRA_NEWLINE   = 1;    % If non-zero, insert a newline first before inserting
                        % a '{'.  Many C programmers like this to be 0. A zero
			% value will force '{' to be on same line as insertion.
			% The jed source code uses 1 for this variable.

			% Note that in C mode, the keys '{' and '}' are bound
			% to the commands 'brace_bra_cmd' and 'brace_ket_cmd'
			% respectively.

C_Colon_Offset = 1;     % Controls the indentation of case statements.
C_CONTINUED_OFFSET = 8; % This variable controls the indentation of statements
                        % that are continued onto the next line.
%---------------------------------------------------------------------------

#ifndef XWINDOWS
%  COLORS: 
%
%  Note that to use the colors below with MS-Kermit, do 
%  'set term color 30 47' at the MS-Kermit prompt.
%  (See the file 'colors.txt' for a description of using JED with color 
%  terminals.)

%  Foreground and background:
%    "black", "blue", "green", "cyan", "red", "magenta", "brown", "lightgray"
%  Foreground Only:
%    "gray", "brightblue", "brightgreen", "brightcyan", "brightred", 
%    "brightmagenta", "yellow", "white"
%  This is a limitation of video adapters on PC systems.  For MSDOS, I 
%  reprogram the controller so that high intensity background colors may be
%  displayed.  There does not seem to be a way to do this in MS-Kermit.
#ifdef UNIX VMS
   TERM_BLINK_MODE = 0;
#endif
   $1 = "white"; $2 = "black";
   set_color("menu", $1, $2);		    % menu bar    
   set_color("normal", $1, $2);	        % default fg/bg
   set_color("status", $1, $2);	  	    % status or mode line
   set_color("region", "yellow", $2);	% for marking regions
   set_color("operator", $1, $2);      	% +, -, etc..  
   set_color("number", $1, $2);	  	    % 10, 2.71,... TeX formulas
   set_color("comment", "gray", $2);    % /* comment */  
   set_color("string", $1, $2);	  	    % "string" or 'char'  
   set_color("keyword", "green", $2);	% if, while, unsigned, ...  
   set_color("keyword1", $1, $2);	    % malloc, exit, etc...
   set_color("delimiter", "brightblue", $2);  % {}[](),.;...  
   set_color("preprocess", "brown", $2);% #ifdef ....  
   set_color("message", "brightred", $2);% color for messages
   set_color("error", $1, "red");       % color for errors
   set_color("dollar", "brightblue", $2);% color dollar sign continuation
   set_color("...", "green", $2);	    % folding indicator

#ifdef UNIX VMS
if (USE_ANSI_COLORS) call ("redraw");
#else
   call("redraw");
#endif
#endif  XWindows

%  Compiler interface --- uncomment one of the following:
%
% compile_parse_error_function = "gcc";           % GNU compiler
% compile_parse_error_function = "Ultrix_cc";     % cc on Ultrix
% compile_parse_error_function = "bcc";           % Borlands BCC
% compile_parse_error_function = "sun_acc";       % SunOS C++ and ACC
% compile_parse_error_function = "hp_cc";         % HPUX cc
variable compile_parse_error_function = "wcc";		  % watcom

evalfile("filter"); pop();
