branch: elpa/flycheck
commit 0393305b8e2bb212473325271c6dba3eadbdf031
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Simplify flycheck-keymap-prefix docstring
    
    Replace the verbose 3-line snippet for changing the keymap prefix with
    the simpler `customize-set-variable` one-liner.
    
    Fixes #1909
---
 flycheck.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/flycheck.el b/flycheck.el
index fcdab71907..d307ca403b 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -1112,13 +1112,10 @@ is used."
   "Prefix for key bindings of Flycheck.
 
 Changing this variable outside Customize does not have any
-effect.  To change the keymap prefix from Lisp, you need to
-explicitly re-define the prefix key:
+effect.  To change the keymap prefix from Lisp, use
+`customize-set-variable':
 
-    (define-key flycheck-mode-map flycheck-keymap-prefix nil)
-    (setq flycheck-keymap-prefix (kbd \"C-c f\"))
-    (define-key flycheck-mode-map flycheck-keymap-prefix
-                flycheck-command-map)
+    (customize-set-variable \\='flycheck-keymap-prefix (kbd \"C-c f\"))
 
 Please note that Flycheck's manual documents the default
 keybindings.  Changing this variable is at your own risk."

Reply via email to