Open leotaku opened 5 years ago
I think it's right. But I don't want to include relationships between keywords more than necessary.
The example you gave may not be intuitive or useful. But please tell me the actual example you encountered. Then I can think more specifically.
;;; -*- lexical-binding: t -*-
(leaf flycheck
:ensure t
:hook
(sh-mode-hook . flycheck-mode)
(emacs-lisp-mode-hook . flycheck-mode)
:defvar (flycheck-emacs-lisp-load-path)
:bind
(:flycheck-mode-map
("M-n" . flycheck-next-error)
("M-p" . flycheck-previous-error))
:config
(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
(setq flycheck-emacs-lisp-load-path 'inherit))
(leaf flycheck-projectile
:ensure t
:leaf-defer nil ;
;; :require t
:bind
(projectile-command-map
("L" . flycheck-projectile-list-errors)))
(provide 'init-flycheck)
;;; init-flycheck.el ends here
the bind to L has no effect
please try
(leaf flycheck-projectile
:ensure t
:leaf-defer nil ;
;; :require t
:bind
(projectile-command-map
:package projectile
("L" . flycheck-projectile-list-errors)))
Thanks. It works, with or without :leaf-defer nil
.
Description
Currently using a leaf block with
:leaf-defer
set tonil
to bind keys to a keymap causes the bindings to be deferred to the leaf name.I do not think this behavior is intuitive or useful, which is why I am asking for this change.
Issue leaf-block
Output from macroexpand-1 of the leaf-block
Expected output from macroexpand-1 of the leaf-block