Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.49 KB | None | 0 0
  1. (use-package which-key
  2.     :delight
  3.     :config (which-key-mode)
  4.     :custom (which-key-compute-remaps t)
  5.     (which-key-show-docstrings nil)
  6.     (which-key-show-prefix 'bottom)
  7.     (which-key-side-window-max-width 1)
  8.     (which-key-side-window-max-height 0.45)
  9.     (which-key-show-remaining-keys t)
  10.     (which-key-sort-order 'which-key-prefix-then-key-order)
  11.     (which-key-hide-alt-key-translations nil)
  12.     (which-key-enable-extended-define-key t))
  13.  
  14.  
  15. Expanded:
  16.  
  17. (progn
  18.   (use-package-ensure-elpa 'which-key
  19.                            '(t)
  20.                            'nil)
  21.   (defvar use-package--warning53
  22.     #'(lambda
  23.         (keyword err)
  24.         (let
  25.             ((msg
  26.               (format "%s/%s: %s" 'which-key keyword
  27.                       (error-message-string err))))
  28.           (display-warning 'use-package msg :error))))
  29.   (condition-case-unless-debug err
  30.       (progn
  31.         (customize-set-variable 'which-key-compute-remaps t "Customized with use-package which-key")
  32.         (customize-set-variable 'which-key-show-docstrings nil "Customized with use-package which-key")
  33.         (customize-set-variable 'which-key-show-prefix 'bottom "Customized with use-package which-key")
  34.         (customize-set-variable 'which-key-side-window-max-width 1 "Customized with use-package which-key")
  35.         (customize-set-variable 'which-key-side-window-max-height 0.45 "Customized with use-package which-key")
  36.         (customize-set-variable 'which-key-show-remaining-keys t "Customized with use-package which-key")
  37.         (customize-set-variable 'which-key-sort-order 'which-key-prefix-then-key-order "Customized with use-package which-key")
  38.         (customize-set-variable 'which-key-hide-alt-key-translations nil "Customized with use-package which-key")
  39.         (customize-set-variable 'which-key-enable-extended-define-key t "Customized with use-package which-key")
  40.         (if
  41.             (not
  42.              (require 'which-key nil t))
  43.             (display-warning 'use-package
  44.                              (format "Cannot load %s" 'which-key)
  45.                              :error)
  46.           (condition-case-unless-debug err
  47.               (progn
  48.                 (which-key-mode)
  49.                 (if
  50.                     (fboundp 'delight)
  51.                     (delight
  52.                      '((which-key-mode nil which-key))))
  53.                 t)
  54.             (error
  55.              (funcall use-package--warning53 :config err)))))
  56.     (error
  57.      (funcall use-package--warning53 :catch err))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement