Skip to content

Commit

Permalink
tweak(flymake-quickdef): include docstring in the generated function
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 6, 2024
1 parent ff6c407 commit e9db03d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/me-checkers.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
(advice-add
'flymake-quickdef-backend :after
(defun +flymake-quickdef--make-load-fn:after-a (backend &rest _)
(let ((fn (intern (format "+%s-load" backend))))
(defalias fn
(lambda () (add-hook 'flymake-diagnostic-functions backend nil t))))))
(defalias (intern (format "+%s-load" backend))
(lambda () (add-hook 'flymake-diagnostic-functions backend nil t))
(format "Load %s as a Flymake backend in the current buffer." backend))))

(when (executable-find "bandit")
(+add-hook! (python-mode python-ts-mode) #'+flymake-bandit-load))
Expand Down

0 comments on commit e9db03d

Please sign in to comment.