Naoya Yamashita

Results 221 comments of Naoya Yamashita

your Emacs could find `use-package` in compiler time? please use `(eval-when-compile (require 'use-package)` to load `use-pacakge` in compiler time.

agree with @rprimus. `:hook (js2-mode . flycheck-mode)` is recommend too. I show another option, create ``flycheck` use-package block and configure `:hook` keyword. ```elisp (use-package flycheck-mode :hook js2-mode emacs-lisp-mode web-mode) ```...

use-package defer package load just not generate `require` expression (pass this responsibility to Emacs native `autoload` feature), this is hard to solve your mentioned *issue*.

use-packageはパッケージのロードを遅らせるのを単にreuqire文を生成しないことで達成しています。(これはEmacsの autoload 機能にその責任 (defer loadする責任) を押し付ける) なので、この問題は解決するのは難しい。ということです。 :defer [N] で解決できるなら良かったです。 --- For English speakers, this comment has no addiional informaiton

If you catch all `:defer`ed packages I think you need to re-define `:defer` handler. ```diff modified use-package-core.el @@ -1322,8 +1322,14 @@ meaning: `((run-with-idle-timer ,arg nil #'require ',(use-package-as-symbol name) nil t)))...

use-package is a macro, you should careful with it. I can generate Sexp that you want to use below snippet. ```elisp (let ((use-package-hook-name-suffix "-functions")) (macroexpand '(use-package vterm :bind (("C-`" ....

OK, sorry to disturb. Return to your issue, `:hook-suffix` is hard to use I think. ``` (use-package package :hook-suffix "special" :hook (hook . foo) hook2 hook3) ``` I guess `hook2`...

Please patch this, you can use `:hook*` keyword. ```diff master 9f0b539c21d8ca19e8b366f6ce5552c4bc6f3013 Author: Naoya Yamashita AuthorDate: Tue Feb 23 02:08:26 2021 +0900 Commit: Naoya Yamashita CommitDate: Tue Feb 23 02:11:36 2021...

Please see @a13 [comment](https://github.com/jwiegley/use-package/issues/864#issuecomment-682109129). > Does > > ``` > (eval-when-compile > (require 'use-package)) > ``` > > help?