aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Vetoshev <gepardcv@gmail.com>2021-03-06 15:38:48 -0800
committerConstantine Vetoshev <gepardcv@gmail.com>2021-03-06 15:48:52 -0800
commitfc8ee110a5f3ea059f64123a1dccba985a9aace7 (patch)
tree294943c24792ba3a2328839598067a17a9d97567
parent0aa9d0d136416dddf55510ca4c8e3e55895db6ca (diff)
Clean up which-key integration.
-rw-r--r--perspective.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/perspective.el b/perspective.el
index 1a09156..e6d1c96 100644
--- a/perspective.el
+++ b/perspective.el
@@ -310,7 +310,9 @@ Run with the activated perspective active.")
(define-key perspective-map (kbd "9") (lambda () (interactive) (persp-switch-by-number 9)))
(define-key perspective-map (kbd "0") (lambda () (interactive) (persp-switch-by-number 10)))
-(when (featurep 'which-key)
+(declare-function which-key-mode "which-key.el")
+(when (fboundp 'which-key-mode)
+ (require 'which-key)
(declare-function which-key-add-keymap-based-replacements "which-key.el")
(when (fboundp 'which-key-add-keymap-based-replacements)
(which-key-add-keymap-based-replacements perspective-map