Auto-commit of generated files.
[emacs.git] / etc / edt-user.el
blobecddd136d274d973704ddbfd86366898ecef349e
1 ;;; edt-user.el --- Sample user customizations for Emacs EDT emulation
3 ;; Copyright (C) 1986, 1992-1993, 2000-2013 Free Software Foundation,
4 ;; Inc.
6 ;; Author: Kevin Gallagher <kgallagh@@spd.dsccc.com>
7 ;; Maintainer: Kevin Gallagher <kgallagh@@spd.dsccc.com>
8 ;; Keywords: emulations
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;;; Commentary:
27 ;; This is an example of the `edt-user.el' file that you can use
28 ;; to customize the Emacs EDT emulation mode. Copy this file to
29 ;; somewhere in your `load-path', and edit it as desired.
30 ;; See Info node `edt' for more details.
32 ;; ====================================================================
35 ;;; Code:
37 ;;;;
38 ;;;; Setup user custom EDT key bindings.
39 ;;;;
41 (defun edt-setup-user-bindings ()
42 "Assigns user custom EDT Emulation keyboard bindings."
44 ;; PF1 (GOLD), PF2, PF3, PF4
46 ;; This file MUST contain a binding of PF1 to edt-user-gold-map. So
47 ;; DON'T CHANGE OR DELETE THE REGULAR KEY BINDING OF PF1 BELOW!
48 ;; (However, you may change the GOLD-PF1 binding, if you wish.)
49 (edt-bind-function-key "PF1" 'edt-user-gold-map 'edt-mark-section-wisely)
50 (edt-bind-function-key "PF2" 'query-replace 'other-window)
51 (edt-bind-function-key "PF4" 'edt-delete-entire-line 'edt-undelete-line)
53 ;; EDT Keypad Keys
54 (edt-bind-function-key "KP1" 'edt-word-forward 'edt-change-case)
55 (edt-bind-function-key "KP3" 'edt-word-backward 'edt-copy)
56 (edt-bind-function-key "KP6" 'edt-cut-or-copy 'yank)
57 (edt-bind-function-key "KP8" 'edt-scroll-window 'fill-paragraph)
58 (edt-bind-function-key "KP9" 'open-line 'edt-eliminate-all-tabs)
59 (edt-bind-function-key "KPP"
60 'edt-toggle-select 'edt-line-to-middle-of-window)
61 (edt-bind-function-key "KPE" 'edt-change-direction 'overwrite-mode)
63 ;; GOLD bindings for regular keys.
64 (edt-bind-gold-key "a" 'edt-append)
65 (edt-bind-gold-key "A" 'edt-append)
66 (edt-bind-gold-key "h" 'edt-electric-user-keypad-help)
67 (edt-bind-gold-key "H" 'edt-electric-user-keypad-help)
69 ;; Control bindings for regular keys.
70 ;;; Leave binding of C-c as original prefix key.
71 (edt-bind-key "\C-j" 'edt-duplicate-word)
72 (edt-bind-key "\C-k" 'edt-define-key)
73 (edt-bind-gold-key "\C-k" 'edt-restore-key)
74 (edt-bind-key "\C-l" 'edt-learn)
75 ;;; Leave binding of C-m to newline.
76 (edt-bind-key "\C-n" 'edt-set-screen-width-80)
77 (edt-bind-key "\C-o" 'open-line)
78 (edt-bind-key "\C-p" 'fill-paragraph)
79 ;;; Leave binding of C-r to isearch-backward.
80 ;;; Leave binding of C-s to isearch-forward.
81 (edt-bind-key "\C-t" 'edt-display-the-time)
82 (edt-bind-key "\C-v" 'redraw-display)
83 (edt-bind-key "\C-w" 'edt-set-screen-width-132)
84 ;;; Leave binding of C-x as original prefix key.
87 ;;;
88 ;;; LK-201 KEYBOARD USER EDT KEYPAD HELP
89 ;;;
91 (defun edt-user-keypad-help ()
93 USER EDT Keypad Active
95 +----------+----------+----------+----------+
96 F7: Copy Rectangle |Prev Line |Next Line |Bkwd Char |Frwd Char |
97 F8: Cut Rect Overstrike | (UP) | (DOWN) | (LEFT) | (RIGHT) |
98 G-F8: Paste Rect Overstrike |Window Top|Window Bot|Bkwd Sent |Frwd Sent |
99 F9: Cut Rect Insert +----------+----------+----------+----------+
100 G-F9: Paste Rect Insert
101 F10: Cut Rectangle
102 G-F10: Paste Rectangle
103 F11: ESC +----------+----------+----------+----------+
104 F12: Beginning of Line | GOLD |Query Repl| FNDNXT |Del Ent L |
105 G-F12: Delete Other Windows | (PF1) | (PF2) | (PF3) | (PF4) |
106 F13: Delete to Begin of Word |Mark Wisel|Other Wind| FIND | UND L |
107 HELP: Keypad Help +----------+----------+----------+----------+
108 G-HELP: Emacs Help | PAGE |Scroll Win|Open Line | DEL W |
109 DO: Execute extended command | (7) | (8) | (9) | (-) |
110 C-a: Beginning of Line |Ex Ext Cmd|Fill Parag|Elim Tabs | UND W |
111 C-b: Backward Character +----------+----------+----------+----------+
112 C-d: Delete Character | ADVANCE | BACKUP | CUT/COPY | DEL C |
113 C-e: End of Line | (4) | (5) | (6) | (,) |
114 C-f: Forward Character | BOTTOM | TOP | Yank | UND C |
115 C-g: Keyboard Quit +----------+----------+----------+----------+
116 G-C-g: Keyboard Quit | Fwd Word | EOL | Bwd Word | Change |
117 C-h: Electric Emacs Help | (1) | (2) | (3) | Direction|
118 G-C-h: Emacs Help | CHNGCASE | DEL EOL | COPY | |
119 C-i: Indent for Tab +---------------------+----------+ (ENTER) |
120 C-j: Duplicate Word | LINE |SELECT/RES| |
121 C-k: Define Key | (0) | (.) | Toggle |
122 G-C-k: Restore Key | Open Line |Center Lin|Insrt/Over|
123 C-l: Learn +---------------------+----------+----------+
124 C-n: Set Screen Width 80
125 C-o: Open Line +----------+----------+----------+
126 C-p: Fill Paragraph | FNDNXT | Yank | CUT |
127 C-q: Quoted Insert | (FIND)) | (INSERT) | (REMOVE) |
128 C-r: Isearch Backward | FIND | | COPY |
129 C-s: Isearch Forward +----------+----------+----------+
130 C-t: Display the Time |SELECT/RES|SECT BACKW|SECT FORWA|
131 C-u: Universal Argument | (SELECT) |(PREVIOUS)| (NEXT) |
132 C-v: Redraw Display | | | |
133 C-w: Set Screen Width 132 +----------+----------+----------+
134 C-z: Suspend Emacs
135 G-C-\\: Split Window
137 G-a: Append to Kill Buffer
138 G-b: Buffer Menu
139 G-c: Compile
140 G-d: Delete Window
141 G-e: Exit
142 G-f: Find File
143 G-g: Find File Other Window
144 G-h: Keypad Help
145 G-i: Insert File
146 G-k: Toggle Capitalization Word
147 G-l: Lowercase Word or Region
148 G-m: Save Some Buffers
149 G-n: Next Error
150 G-o: Switch Windows
151 G-q: Quit
152 G-r: Revert File
153 G-s: Save Buffer
154 G-u: Uppercase Word or Region
155 G-v: Find File Other Window
156 G-w: Write file
157 G-y: EDT Emulation OFF
158 G-z: Switch to Default EDT Key Bindings
159 G-2: Split Window
160 G-%: Go to Percentage
161 G- : Undo (GOLD Spacebar)
162 G-=: Go to Line
163 G-`: What line
164 G-/: Query-Replace"
166 (interactive)
167 (describe-function 'edt-user-keypad-help))
169 ;;; edt-user.el ends here