/**********************************************************************/
/* jeredrc : System/User settings for JERED                           */
/**********************************************************************/

    Copyright (C) 1996, 1997 Free Software Foundation, Inc.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

/* you can rename this file but you must set the environment variable */
/* JEPROFILE with the new name, ex: JEPROFILE="$HOME/pref/myprofile.xyz" */
/*          export JEPROFILE         */
/* The default name is ".jeredrc" and the default path is the current */
/* user's home directory */

/* This file allows you to set your preferences for JERED */
/* each line which doesn't begin with a JERED internal variable name */
/* is considered as being a comment. For example you can begin your comments with */
/* # if you prefer, or with // or with any character provided that the first word */
/* of a line isn't a JERED internal variable name */

/* You can choose any user interface color, the language (English or French), */
/* the tabulation size, and if you want a backup of a file you've just saved */

/* Table of colors:    1st column = color's name in JERED */
/*         may be either in ENGLISH or in FRENCH */
/*         2nd column = forground color */
/*         3rd column = background color */
/*         4th column = 1st attribute */
/*         5th column = 2nd attribute */
/* the background and foreground colors are mixed together by */
/* init_pair() and the result is or'ed with the two attributes */

/* The separator between columns is ':' */
/* You must fill in columns 1, 2 and 3 */
/* You need not to fill in columns 4 and 5 */

/* List of the colors you can choose in JERED: */
/* COLOR_STATUS/COULEUR_STATUS  : status bar's color (top of the screen) */
/* COLOR_HELP/COULEUR_AIDE  : help bar's color (bottom of the screen) */
/* COLOR_KEYWORD/COULEUR_MOTCLE : C/C++ keywords's color */
/* COLOR_STRING/COULEUR_CHAINE  : string constants's color */
/* COLOR_COMMENT/COULEUR_COMMENT: comments's color */
/* COLOR_ALERT1/COULEUR_ALERTE1 : default color for alert boxes */
/* COLOR_ALERT2/COULEUR_ALERTE2 : active button's color in alert boxes */
/* COLOR_NORMAL/COULEUR_NORMALE : normal text's color */
/* COLOR_BLOCK/COULEUR_BLOC : marked lines's color */
/* COLOR_CHAR/COULEUR_CHAR  : character constants's color */
/* COLOR_HIGHLIGHT/COULEUR_SURBRILLANCE : to enhance the help bar appearance */

/* List of available colors (in NCURSES): */
/*  COLOR_BLACK  : noir */
/*  COLOR_RED    : rouge */
/*  COLOR_GREEN  : vert */
/*  COLOR_YELLOW : jaune */
/*  COLOR_BLUE   : bleu */
/*  COLOR_MAGENTA: magenta */
/*  COLOR_CYAN   : cyan */
/*  COLOR_WHITE  : blanc */

/* List of available attributes (in NCURSES): */
/*  A_NORMAL */
/*  A_STANDOUT */
/*  A_UNDERLINE */
/*  A_REVERSE */
/*  A_BLINK */
/*  A_DIM */
/*  A_BOLD */

/* here are the default colors settings */
/* you can modify them uncomenting the following lines */
/* but be careful, under certain circumstances in xterm */
/* the cursor may disappear due to the color you've chosen. */
/* it works fine in rxvt */
#COLOR_STATUS:COLOR_BLACK:COLOR_CYAN
#COLOR_HELP:COLOR_BLACK:COLOR_CYAN
#COLOR_KEYWORD:COLOR_RED:COLOR_BLACK:A_BOLD
#COLOR_STRING:COLOR_BLUE:COLOR_BLACK:A_BOLD
#COLOR_COMMENT:COLOR_GREEN:COLOR_BLACK
#COLOR_ALERT1:COLOR_BLACK:COLOR_CYAN
#COLOR_ALERT2:COLOR_BLACK:COLOR_CYAN:A_REVERSE:A_BLINK
#COLOR_NORMAL:COLOR_WHITE:COLOR_BLACK
#COLOR_BLOCK:COLOR_WHITE:COLOR_BLUE
#COLOR_CHAR:COLOR_MAGENTA:COLOR_BLACK:A_BOLD
#COLOR_HIGHLIGHT:COLOR_RED:COLOR_CYAN:A_BOLD

/* tabulations size */
/* if you delete the following line the default value is 8 */
TABSIZE:8

/* if you want to convert spaces to tabs when you save a file, then set */
/* the following variable to YES/OUI, otherwise set it to NO/NON */
/* if you delete the following line, the default value is NO/NON */
/* which means that spaces are not converted to tabs */
SAVETABS:NO

/* the three following lines define how word wrapping is done */
/* if AUTOWORDWRAP is absent it defaults to NO/NON. In this case */
/* WORDWRAPBEGIN and WORDWRAPEND are used only when the user ask for */
/* reformatting a paragraph. They represents the begin and end column for */
/* word wrapping. If AUTOWORDWRAP is set to YES, then the text is automatically */
/* reformatted when typed, according to WORDWRAPBEGIN and WORDWRAPEND */
/* REMARK: AUTOMATIC REFORMATTING IS CURRENTLY NOT IMPLEMENTED !!! */
/* SO AUTOWORDWRAP WILL STAY TO NO/NON FOR NOW */
AUTOWORDWRAP:NO
WORDWRAPBEGIN:1
WORDWRAPEND:2038

/* the following value allow the user to choose how other users */
/* can access files while he is editing them */
/* the default value is NONE: other users can read/write edited files */
/* you can set this value to READONLY if you don't want to allow other people */
/* to write in the files you are currently editing or you can set it to */
/* STRICT if you don't want other people to be able to read or write */
/* to the files you are currently editing */
LOCK:NONE

/* is a backup made every time you save a file ??? */
/* if you delete the following line the default value is OUI/YES */
/* you must set it explicitely to NON/NO */
BACKUP:YES

/* if you set the following line to YES/OUI, the terminal will be considered */
/* as a color terminal even if has_colors() returns FALSE. This allows you */
/* to choose your attributes with a monochrome terminal. */
/* the default value is NO/NON, wich mean that JERED will take care of the */
/* value returned by has_colors() */
COLORS:NO

/* use the following line to choose your preferred language */
/* for the user interface of JERED. You can choose either ENGLISH/ANGLAIS */
/* or FRENCH/FRANCAIS or FINNISH/SUOMI or GERMAN/DEUTSCH or RUSSIAN/RUSSIAN (!). */
/* Any other value reset it to the default value: ENGLISH */
LANGUAGE:ENGLISH

/* if you want to autoplay macros assigned to keys or not */
/* the default value is YES */
AUTOPLAYMACRO:YES

/* delay in second between two automatic saves of a file */
/* if absent or if value is set to 0 (zero), no autosaves are done */
/* A TILDE IS ADDED TO THE FILE NAME AND THE BACKUP FILE NAME */
AUTOSAVE:180

/* normal help bar */
/* if not present a default NORMAL help bar will be displayed according to */
/* your preferred language (ENGLISH, FRENCH, FINNISH, GERMAN or RUSSIAN) */
/* however it could not be ok according to your key mappings if you change the default !!! */
;HELPBAR:&1/Cmd &2/Sh &3/Quit &4/Save &5/Find&&Replace &6/Mark &7/Unmark &8/Copy &9/Move &1&0/Remove

/* escape help bar */
/* if not present a default ESCAPE help bar will be displayed according to */
/* your preferred language */
;ESCHELPBAR:ESC: Read profile.je to see which keys are available

/* each mappable function begins with 'FUNCTION_' */
/* a mappable text must begin with 'TEXT_' */
/* a mappable macro must begin with 'MACRO_' */
/* HERE FOLLOWS THE LIST OF ALL THE REMAPPABLE FUNCTIONS AND THEIR
        SHORT DESCRIPTION:

        FUNCTION_GENHELP: generate a help file according to current key mappings
        FUNCTION_HELP: load JERED's help file according to the JEHELP environnement variable
        FUNCTION_COMMAND: shows the internal/external command dialog box
        FUNCTION_SHELL: does a shell out.
        FUNCTION_QUIT: quits the current file
        FUNCTION_SAVE: saves the current file
        FUNCTION_FIND: shows the Find & Replace dialog box
        FUNCTION_MARK: marks the current line
        FUNCTION_UNMARK: unmark all the marked lines
        FUNCTION_COPY: copy the marked lines to the line below the current line
        FUNCTION_REMOVE: deletes all the marked lines
        FUNCTION_MOVE: moves the marked lines to the line below the current line
        FUNCTION_NEXTFILE: switches to the next file in the list
        FUNCTION_INSERTLINE: insert a blank line just below the current line
        FUNCTION_DELETELINE: deletes the current line
        FUNCTION_LINEUP: moves the cursor up one line
        FUNCTION_LINEDOWN: moves the cursor down one line
        FUNCTION_PAGEUP: moves the cursor up one screen page
        FUNCTION_PAGEDOWN: moves the cursor down one page
        FUNCTION_HOME: moves the cursor to the beginning of the line
        FUNCTION_END: moves the cursor to the end of the line
        FUNCTION_LEFT: moves the cursor one position to the left
        FUNCTION_RIGHT: moves the cursor one position to the right
        FUNCTION_INVERTINSMOD: toggle between insert and replace mode
        FUNCTION_CUTLINE: cuts the line at the cursor's position
        FUNCTION_TAB: moves the cursor to the next tab position
        FUNCTION_BACKTAB: moves the cursor to the previous tab position
        FUNCTION_DELETECHAR: deletes the character under the cursor
        FUNCTION_BACKSPACE: deletes the character at the left of the cursor
        FUNCTION_PARAGRAPHUP: moves the cursor to the previous paragraph
        FUNCTION_PARAGRAPHDOWN: moves the cursor to the next paragraph
        FUNCTION_PREVIOUSWORD: moves the cursor to the previous word
        FUNCTION_NEXTWORD: moves the cursor to the next word
        FUNCTION_UPPERCASE: all the marked lines are converted to upper case
        FUNCTION_LOWERCASE: all the marked lines are converted to lower case
        FUNCTION_ALIGNBLOCK: the block is aligned to the cursor's column
        FUNCTION_WRAPBLOCK: the block is reformatted
        FUNCTION_RECORDMACRO: begins/stops a macro recording
        FUNCTION_PLAYMACRO: plays the current default macro './macro.jem'
        FUNCTION_MAN: executes the man command on the word where the cursor is
        FUNCTION_INFO: same as FUNCTION_MAN but with the info command
        FUNCTION_BG: puts the editor in the background
        FUNCTION_REDRAW: redraws the screen enterely from scratch
*/

/* here follows the mappable keys list */
/* you can also map keys like KEY_0xnn where nn is an hexadecimal number */
/* between 0 and KEY_MAX (as defined in curses.h) */
/* you can also map keys like KEY_CTRL_x where x is an upper cased letter */
/* between A and Z, the corresponding value will be between 1 and 26 decimal */
/* you can precede each key name by ESC_ */
/*
        KEY_TAB
        KEY_RETURN
        KEY_LINEFEED
        KEY_ESPACE
        KEY_BREAK
        KEY_DOWN
        KEY_UP
        KEY_LEFT
        KEY_RIGHT
        KEY_HOME
        KEY_BACKSPACE
        KEY_F0
        KEY_F1
        KEY_F2
        KEY_F3
        KEY_F4
        KEY_F5
        KEY_F6
        KEY_F7
        KEY_F8
        KEY_F9
        KEY_F10
        KEY_F11
        KEY_F12
        KEY_F13
        KEY_F14
        KEY_F15
        KEY_F16
        KEY_F17
        KEY_F18
        KEY_F19
        KEY_F20
        KEY_DL
        KEY_IL
        KEY_DC
        KEY_IC
        KEY_EIC
        KEY_CLEAR
        KEY_EOS
        KEY_EOL
        KEY_SF
        KEY_SR
        KEY_NPAGE
        KEY_PPAGE
        KEY_STAB
        KEY_CTAB
        KEY_CATAB
        KEY_ENTER
        KEY_SRESET
        KEY_RESET
        KEY_PRINT
        KEY_LL
        KEY_A1
        KEY_A3
        KEY_B2
        KEY_C1
        KEY_C3
        KEY_BTAB
        KEY_BEG
        KEY_CANCEL
        KEY_CLOSE
        KEY_COMMAND
        KEY_COPY
        KEY_CREATE
        KEY_END
        KEY_EXIT
        KEY_FIND
        KEY_HELP
        KEY_MARK
        KEY_MESSAGE
        KEY_MOVE
        KEY_NEXT
        KEY_OPEN
        KEY_OPTIONS
        KEY_PREVIOUS
        KEY_REDO
        KEY_REFERENCE
        KEY_REFRESH
        KEY_REPLACE
        KEY_RESTART
        KEY_RESUME
        KEY_SAVE
        KEY_SBEG
        KEY_SCANCEL
        KEY_SCOMMAND
        KEY_SCOPY
        KEY_SCREATE
        KEY_SDC
        KEY_SDL
        KEY_SELECT
        KEY_SEND
        KEY_SEOL
        KEY_SEXIT
        KEY_SFIND
        KEY_SHELP
        KEY_SHOME
        KEY_SIC
        KEY_SLEFT
        KEY_SMESSAGE
        KEY_SMOVE
        KEY_SNEXT
        KEY_SOPTIONS
        KEY_SPREVIOUS
        KEY_SPRINT
        KEY_SREDO
        KEY_SREPLACE
        KEY_SRIGHT
        KEY_SRSUME
        KEY_SSAVE
        KEY_SSUSPEND
        KEY_SUNDO
        KEY_SUSPEND             /* Ctrl_Z */
        KEY_UNDO
*/

        /* WHAT FOLLOW IS THE DEFAULT KEY MAPPINGS DEFINITION */
        /* EVEN IF THESE LINES ARE NOT PRESENT, KEYS ARE DEFINED AS FOLLOWS */
        /* PLEASE DON'T MODIFY THESE LINES, JUST ADD YOUR (RE)MAPPINGS */
        /* IN THE FOLLOWING SECTION */
        /* PLEASE NEVER ADD COMMENTS AT THE END OF A KEY MAPPING BECAUSE */
        /* THIS WILL COMPROMISE FUTURE EXTENSIONS */
ESC_KEY_h:FUNCTION_GENHELP
ESC_KEY_H:FUNCTION_HELP
ESC_KEY_u:FUNCTION_UPPERCASE
ESC_KEY_l:FUNCTION_LOWERCASE
ESC_KEY_a:FUNCTION_ALIGNBLOCK
ESC_KEY_r:FUNCTION_WRAPBLOCK
ESC_KEY_UP:FUNCTION_PARAGRAPHUP
ESC_KEY_DOWN:FUNCTION_PARAGRAPHDOWN
ESC_KEY_RIGHT:FUNCTION_NEXTWORD
ESC_KEY_LEFT:FUNCTION_PREVIOUSWORD
KEY_F1:FUNCTION_COMMAND
KEY_F2:FUNCTION_SHELL
KEY_F3:FUNCTION_QUIT
KEY_F4:FUNCTION_SAVE
KEY_F5:FUNCTION_FIND
KEY_F6:FUNCTION_MARK
KEY_F7:FUNCTION_UNMARK
KEY_F8:FUNCTION_COPY
KEY_F9:FUNCTION_MOVE
KEY_F10:FUNCTION_REMOVE
KEY_F11:FUNCTION_MAN
KEY_F12:FUNCTION_INFO
KEY_CTRL_L:FUNCTION_REDRAW
KEY_CTRL_N:FUNCTION_NEXTFILE
KEY_CTRL_T:FUNCTION_BACKTAB
KEY_CTRL_W:FUNCTION_CUTLINE
KEY_CTRL_Y:FUNCTION_DELETELINE

; the following line doesn't work because Ctrl_Z is not returned !!!
; KEY_SUSPEND is returned in place of Ctrl_Z */
;KEY_CTRL_Z:FUNCTION_BG
KEY_SUSPEND:FUNCTION_BG

KEY_RETURN:FUNCTION_INSERTLINE
KEY_LINEFEED:FUNCTION_INSERTLINE
KEY_UP:FUNCTION_LINEUP
KEY_DOWN:FUNCTION_LINEDOWN
KEY_RIGHT:FUNCTION_RIGHT
KEY_LEFT:FUNCTION_LEFT
KEY_PPAGE:FUNCTION_PAGEUP
KEY_NPAGE:FUNCTION_PAGEDOWN
KEY_HOME:FUNCTION_HOME
KEY_END:FUNCTION_END
KEY_IC:FUNCTION_INVERTINSMOD
KEY_DC:FUNCTION_DELETECHAR
KEY_TAB:FUNCTION_TAB
KEY_BTAB:FUNCTION_BACKTAB
KEY_BACKSPACE:FUNCTION_BACKSPACE
KEY_CTRL_R:FUNCTION_RECORDMACRO
KEY_CTRL_P:FUNCTION_PLAYMACRO

        /* YOU CAN ADD YOUR OWN KEY (RE-)MAPPINGS IN THE LINES BELOW */
        /* some key mappings, just to show how it works */
ESC_KEY_@:TEXT_Jerome Alet - alet@unice.fr
ESC_KEY_d:MACRO_macros/dowhile.jem
ESC_KEY_e:MACRO_macros/else.jem
ESC_KEY_f:MACRO_macros/for.jem
ESC_KEY_i:MACRO_macros/if.jem
ESC_KEY_s:MACRO_macros/switch.jem
ESC_KEY_w:MACRO_macros/while.jem
ESC_KEY_/:MACRO_macros/ccomment.jem

        /* uncomment the 2 following lines if you want */
;KEY_{:MACRO_macros/accolade.jem
;KEY_(:MACRO_macros/parenth.jem

        /* some key mappings for morse messages */
        /* please begin your morse message by typing ESC_KEY_S to start text !!! */
;KEY_RETURN:MACRO_macros/morse_cr.jem
;KEY_BACKSPACE:MACRO_macros/morse_backspace.jem
;KEY_A:MACRO_macros/morse_a.jem
;KEY_B:MACRO_macros/morse_b.jem
;KEY_C:MACRO_macros/morse_c.jem
;KEY_D:MACRO_macros/morse_d.jem
;KEY_E:MACRO_macros/morse_e.jem
;KEY_F:MACRO_macros/morse_f.jem
;KEY_G:MACRO_macros/morse_g.jem
;KEY_H:MACRO_macros/morse_h.jem
;KEY_I:MACRO_macros/morse_i.jem
;KEY_J:MACRO_macros/morse_j.jem
;KEY_K:MACRO_macros/morse_k.jem
;KEY_L:MACRO_macros/morse_l.jem
;KEY_M:MACRO_macros/morse_m.jem
;KEY_N:MACRO_macros/morse_n.jem
;KEY_O:MACRO_macros/morse_o.jem
;KEY_P:MACRO_macros/morse_p.jem
;KEY_Q:MACRO_macros/morse_q.jem
;KEY_R:MACRO_macros/morse_r.jem
;KEY_S:MACRO_macros/morse_s.jem
;KEY_T:MACRO_macros/morse_t.jem
;KEY_U:MACRO_macros/morse_u.jem
;KEY_V:MACRO_macros/morse_v.jem
;KEY_W:MACRO_macros/morse_w.jem
;KEY_X:MACRO_macros/morse_x.jem
;KEY_Y:MACRO_macros/morse_y.jem
;KEY_Z:MACRO_macros/morse_z.jem
;KEY_0:MACRO_macros/morse_0.jem
;KEY_1:MACRO_macros/morse_1.jem
;KEY_2:MACRO_macros/morse_2.jem
;KEY_3:MACRO_macros/morse_3.jem
;KEY_4:MACRO_macros/morse_4.jem
;KEY_5:MACRO_macros/morse_5.jem
;KEY_6:MACRO_macros/morse_6.jem
;KEY_7:MACRO_macros/morse_7.jem
;KEY_8:MACRO_macros/morse_8.jem
;KEY_9:MACRO_macros/morse_9.jem
;KEY_.:MACRO_macros/morse_..jem
;ESC_KEY_S:MACRO_macros/morse_sot.jem
;ESC_KEY_E:MACRO_macros/morse_eot.jem
;ESC_KEY_BACKSPACE:MACRO_macros/morse_error.jem

/**********************************************************************/
