branch: elpa/gnosis
commit 8d51c16ced713d146d279500c57fc220000cbf3e
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>

    edit-mode: Format header-line to automatically get current bindings.
---
 gnosis.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index ba1fb126956..c5191bbcfb5 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1906,9 +1906,9 @@ generate new note id."
   :interactive nil
   :lighter " Gnosis Edit"
   :keymap gnosis-edit-mode-map
-  (setq header-line-format (format " Save note by running %s or %s to quit"
-                                  (propertize "C-c C-c" 'face 
'help-key-binding)
-                                  (propertize "C-c C-k" 'face 
'help-key-binding))))
+  (setq header-line-format
+       (substitute-command-keys
+        " Save note by running \\[gnosis-save] or \\[gnosis-edit-quit] to 
quit")))
 
 (defun gnosis-validate-custom-values (new-value)
   "Validate the structure and values of NEW-VALUE for gnosis-custom-values."

Reply via email to