-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathforth-mode.texi
133 lines (85 loc) · 2.29 KB
/
forth-mode.texi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
\input texinfo
@settitle Forth Mode
@copying
Copyright @copyright{} 2015 Lars Brinkhoff
@end copying
@dircategory Emacs editing modes
@direntry
* Forth mode: (forth-mode). Emacs mode for editing Forth files.
@end direntry
@titlepage
@title Forth Mode
@subtitle An Emacs mode for editing Forth files
@end titlepage
@page
@contents
@node Top
@top Forth Mode
Forth Mode is a programming language mode for Forth. It can be used
to edit regular Forth files, and block files. There is also a host of
commands for interacting with a running Forth session.
@menu
* Overview::
* Using Forth Mode::
* Forth Interaction::
@end menu
@node Overview
Programming language mode for Forth.
@node Using Forth Mode
How to use forth-mode.
Key bindings:
@table @kbd
@item M-TAB
@itemx C-M-i
@itemx M-x completion-at-point
Attempt to complete the Forth word under point.
@item C-M-f
@itemx M-x forward-sexp
Move forward across one balanced expression.
@item C-M-b
@itemx M-x backward-sexp
Move backward across one balanced expression.
@end table
@node Forth Interaction
How to interact with Forth.
Key bindings:
@table @kbd
@item M-x run-forth
Start an interactive Forth session.
@item C-c C-z
@itemx M-x forth-switch-to-output-buffer
Switch to the interactive Forth session.
@item C-c C-r
@itemx M-x forth-restart
Restart the interactive Forth session.
@item C-c C-k
@itemx M-x forth-kill
End the interactive Forth session.
@item C-c :
@itemx M-x forth-eval
Enter a string to evaluation. The output, if any, is printed in the
minibuffer.
@item C-c C-r
@itemx M-x forth-eval-region
Evaluate the current region. The output, if any, is printed in the
minibuffer.
@item C-c C-e
@itemx M-x forth-eval-last-expression
Evaluate the expression before point. The output, if any, is printed
in the minibuffer.
@item C-x M-e
@itemx M-x forth-eval-last-expression-display-output
Evaluate the expression before point. Display the output, if any, in
the interactive Forth session.
@item C-M-x
@itemx M-x forth-eval-defun
Evaluate the colon definition under point. The output, if any, is
printed in the minibuffer.
@item C-c C-l
@itemx M-x forth-load-file
Load the current file into the interactive Forth Session.
@item C-c C-s
@itemx M-x forth-see
Display a human-readable representation of the word under point.
@end table
@bye