Debian Codegraph @

doc/jove.rc.in

raw
1 # Make changes to jove.rc.in (and not jove.rc)
2 #
3 # This standard system-wide initialization file provides various
4 # reasonable defaults. However, it is probably best seen as a starting
5 # point, with examples of interesting possibilities, from which
6 # sysadmins can hack their own versions.
7
8 pushlibd
9
10 # This macro deletes the line containing the cursor.
11 # It is used in several of the jove.rc.TERM files and is intended
12 # for binding to the delete-line key on terminals which have it.
13 # It is placed in the kill ring for subsequent yanking.
14 define-macro kill-line ^[xbeginning-of-line^M^[xset-mark^M^[xnext-line^M^[xkill-region^M^[xpop-mark^M
15
16 # Set fill mode when Jove is fired up automatically by certain
17 # mail/news readers.
18 1 auto-execute-command auto-fill-mode /tmp/\{Re\|article\|rnmail\|pn\}
19
20 # The following is if you prefer fill-mode to be on for all
21 # files except the ones you want it off for (but on the other hand it could
22 # be argued that defaults in editors should be the "least surprising"
23 # alternative).
24
25 # Sets auto-fill-mode for every file and then turns it off as required.
26 # 1 auto-execute-command auto-fill-mode .*
27 # 0 auto-execute-command auto-fill-mode .*\.[lcChyfp]$\|.*\.lisp$\|.*\.scm$\|.*\.c++$
28
29 # set various language modes.
30 1 auto-execute-command c-mode .*\.[cChy]$\|.*\.c++$
31 1 auto-execute-command lisp-mode .*\.l$\|.*\.lisp$\|.*\.scm$
32 # all the languages need show-match-mode.
33 1 auto-execute-command show-match-mode .*\.[lcChyfp]$\|.*\.lisp$\|.*\.scm$\|.*\.c++$
34
35 # The following apply to shell windows. Note the use of ^C^C, ^C^D etc.,
36 # thus leaving ^D available for delete-next-character.
37 # This conforms to current emacs usage.
38 ifvar jove-features .*:iproc:
39 process-bind-to-key interrupt-process ^C^C
40 process-bind-to-key eof-process ^C^D
41 process-bind-to-key quit-process ^C^\
42 process-bind-to-key stop-process ^C^Z
43 process-bind-to-key dstop-process ^C^Y
44
45 # A plethora of programs now unilaterally try to color
46 # their output using ANSI color sequences, and all
47 # have different ways to turn that off, sigh.
48 iproc-env-export INSIDE_JOVE=iproc
49 iproc-env-export TERM=dumb
50 iproc-env-unset COLORTERM
51 iproc-env-export LS_COLORS=none
52 iproc-env-unset CLICOLOR
53 iproc-env-export GREP_COLOR=never
54 iproc-env-unset GREP_COLORS
55 iproc-env-export GCC_COLORS=""
56 iproc-env-export SYSTEMD_LOG_COLOR=false
57 endif
58
59 # since proc do not have a pty, fewer
60 # programs produce color, not sure
61 # if all these are needed.
62 ifvar jove-features .*:proc:
63 proc-env-export INSIDE_JOVE=proc
64 proc-env-export LS_COLORS=none
65 proc-env-unset CLICOLOR
66 proc-env-export GREP_COLOR=never
67 proc-env-unset GREP_COLORS
68 proc-env-export GCC_COLORS=""
69 proc-env-export SYSTEMD_LOG_COLOR=false
70
71 # Uncomment to set TERM you find any programs producing
72 # unreadable output in subshells via pipes.
73 # proc-env-export TERM=dumb
74
75 # gcc error messages have Unicode quote chars
76 # if LANG or LC* are set to utf*, which is
77 # typical for modern Linux. That is hard to
78 # read inside Jove compile-it output.
79 # (similarly, nroff produces Unicode hyphens)
80 # LANG=C seems a more readable, albeit constraining
81 # default for Jove subshells (at least,
82 # till Jove gets to understand Unicode)
83 proc-env-export LANG=C
84 endif
85
86 # This makes the arrow keys work on most terminals.
87 bind-to-key previous-line ^[[A
88 bind-to-key next-line ^[[B
89 bind-to-key forward-character ^[[C
90 bind-to-key backward-character ^[[D
91 bind-to-key previous-line ^[OA
92 bind-to-key next-line ^[OB
93 bind-to-key forward-character ^[OC
94 bind-to-key backward-character ^[OD
95
96 # This causes the previous file version to remain as '#filename~'.
97 # set make-backup-files on
98
99 # If a terminal needs ^S/^Q for flow control, set allow-^S-and-^Q off
100 # in jove.rc.TERM. Note that many things claiming to be vt100
101 # are now terminal emulators (e.g. NetBSD console), so be careful
102 # turning it off.
103
104 # source any TERMinal-specific rc file
105 1 source jove.rc.$TERM
106
107
108 # Beginner help window and bindings (adopted from Jove Einsteiger Menue
109 # in Debian package, original by Gerold Meerkoetter)
110 define-macro help-window ^[xselect-buffer *Beginner_Help*^M^[xpushlibd^M^[xinsert-file jem.txt^M^[xmake-buffer-unmodified^M^[xread-only-mode^M^[xwindow-find^Mb^M^[7^[xgrow-window^M^[xpopd^M
111 auto-execute-command delete-other-windows .*/\{teach-jove\|teachjov.txt\}
112 bind-to-key teach-jove ^[t
113 bind-to-key apropos ^Xa
114 ifenv JOVENOHELP 1
115 else
116 ifvar jove-features .*:unix:.*:proc:
117 if sh -c 'test ! -f $HOME/.joverc'
118 execute-macro help-window
119 endif
120 else
121 execute-macro help-window
122 endif
123 endif
124
125 # source local custom rc file, if present
126 # This might be convenient for system admins
127 # making customizations across their entire domain
128 1 source jove-local.rc
129
130 popd
131
132 # source local host rc file, if present
133 # This might be convenient for customizations for a specific
134 # machine.
135 1 source __ETCDIR__/jove.rc
136