msherry / flycheck-pycheckers

Multiple syntax checker for Python in Emacs, using Flycheck
GNU General Public License v3.0
63 stars 23 forks source link

`flycheck-pycheckers-setup` is void #23

Closed berquist closed 5 years ago

berquist commented 5 years ago

The typical use-package code doesn't work:

(use-package flycheck-pycheckers
  :init
  (with-eval-after-load 'flycheck
    (add-hook 'flycheck-mode-hook #'flycheck-pycheckers-setup)))

because the package autoload isn't being generated properly:

diff --git a/flycheck-pycheckers.el b/flycheck-pycheckers.el
index 45d08f3..a38621e 100644
--- a/flycheck-pycheckers.el
+++ b/flycheck-pycheckers.el
@@ -283,7 +283,7 @@ per-directory."
   (interactive)
   (setq flycheck-checkers (remove 'python-pycheckers flycheck-checkers)))

-;;; ###autoload
+;;;###autoload
 (defun flycheck-pycheckers-setup ()
   "Convenience function to setup the pycheckers flycheck checker."
   (interactive)

If you add the source directly to your load path, the issue doesn't appear.

msherry commented 5 years ago

Thanks, I've updated that autoload!