Only temporarily display keyboard shortcuts
[texmacs.git] / src / TeXmacs / progs / source / source-edit.scm
bloba91c470c0b1f27cafa6e4540d2dd14aae398e9ba
2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3 ;;
4 ;; MODULE      : source-edit.scm
5 ;; DESCRIPTION : editing source code
6 ;; COPYRIGHT   : (C) 1999  Joris van der Hoeven
7 ;;
8 ;; This software falls under the GNU general public license version 3 or later.
9 ;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
10 ;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14 (texmacs-module (source source-edit))
16 (tm-define (make-latex)
17   (make 'latex)
18   (set-message "Type a latex command followed by return" "latex"))
20 (tm-define (kbd-return)
21   (:inside hybrid)
22   (activate-hybrid #f))
24 (tm-define (kbd-return)
25   (:inside latex)
26   (activate-latex))
28 (tm-define (kbd-return)
29   (:inside symbol)
30   (activate-symbol))
32 (tm-define (kbd-return)
33   (:inside inactive)
34   (activate))
36 (tm-define (kbd-return)
37   (:inside compound)
38   (activate-compound))
40 (tm-define (kbd-tab)
41   (:inside hybrid)
42   (activate-hybrid #t))
44 (tm-define (kbd-tab)
45   (:inside inactive tuple attr)
46   (insert-argument #t))
48 (tm-define (kbd-tab)
49   (:mode in-source?)
50   (insert-argument #t))
52 (tm-define (structured-insert forwards?)
53   (:inside hybrid)
54   (activate-hybrid #t))