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)
|
||||
(when 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
|
||||
"Type \\<string-edit-mode-map>\\[string-edit-done] when you've finished editing")))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue