mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 15:30:40 -08:00
Add an instruction header line to string-edit
* lisp/textmodes/string-edit.el (string-edit): Add a header line with instructions.
This commit is contained in:
parent
a7f2eb3054
commit
0613e7c33d
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ buffer, but won't be included in the resulting string."
|
||||||
(setq-local string-edit--success-callback success-callback)
|
(setq-local string-edit--success-callback success-callback)
|
||||||
(when abort-callback
|
(when abort-callback
|
||||||
(setq-local string-edit--abort-callback abort-callback))
|
(setq-local string-edit--abort-callback abort-callback))
|
||||||
|
(setq-local header-line-format
|
||||||
|
(substitute-command-keys
|
||||||
|
"Type \\<string-edit-mode-map>\\[string-edit-done] when you've finished editing or \\[string-edit-abort] to abort"))
|
||||||
(message "%s" (substitute-command-keys
|
(message "%s" (substitute-command-keys
|
||||||
"Type \\<string-edit-mode-map>\\[string-edit-done] when you've finished editing")))
|
"Type \\<string-edit-mode-map>\\[string-edit-done] when you've finished editing")))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue