~mgmarlow/deno-ts-mode

465f976d9930c21b2fb7e3e21f26c4e813bed02e — Graham Marlow 1 year, 8 days ago c6f827b
fix: void-function on autoloads

Wrap `project-vc-extra-root-markers' autoload in `eval-after-load' to
ensure it's run after project is loaded.
1 files changed, 4 insertions(+), 3 deletions(-)

M deno-ts-mode.el
M deno-ts-mode.el => deno-ts-mode.el +4 -3
@@ 5,7 5,7 @@
;; Author: Graham Marlow <info@mgmarlow.com>
;; Keywords: languages
;; URL: https://git.sr.ht/~mgmarlow/deno-ts-mode
;; Version: 0.1.0
;; Version: 0.1.1
;; Package-Requires: ((emacs "29.1"))

;; This program is free software; you can redistribute it and/or modify


@@ 154,8 154,9 @@ determined by `deno-project-p') this function will fallback to
(add-hook 'compilation-filter-hook 'ansi-color-compilation-filter)

;;;###autoload
(dolist (file '("deno.json" "deno.jsonc"))
  (add-to-list 'project-vc-extra-root-markers file))
(with-eval-after-load 'project
  (dolist (file '("deno.json" "deno.jsonc"))
    (add-to-list 'project-vc-extra-root-markers file)))

(provide 'deno-ts-mode)
;;; deno-ts-mode.el ends here