Function: which-key-enable-god-mode-support
which-key-enable-god-mode-support is an interactive and byte-compiled
function defined in which-key.el.gz.
Signature
(which-key-enable-god-mode-support &optional DISABLE)
Documentation
Enable support for god-mode if non-nil.
This is experimental, so you need to explicitly opt-in for now. Please report any problems at github. If DISABLE is non-nil disable support.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key-enable-god-mode-support (&optional disable)
"Enable support for god-mode if non-nil.
This is experimental, so you need to explicitly opt-in for
now. Please report any problems at github. If DISABLE is non-nil
disable support."
(interactive "P")
(setq which-key--god-mode-support-enabled (null disable))
(if disable
(progn
(advice-remove 'god-mode-lookup-command
#'which-key--god-mode-lookup-command-advice)
(remove-function which-key-this-command-keys-function
#'which-key--god-mode-this-command-keys)
(remove-hook 'which-key-inhibit-display-hook
#'which-key-god-mode-self-insert-p))
(advice-add 'god-mode-lookup-command :around
#'which-key--god-mode-lookup-command-advice)
(add-function :override which-key-this-command-keys-function
#'which-key--god-mode-this-command-keys)
(add-hook 'which-key-inhibit-display-hook
#'which-key-god-mode-self-insert-p)))