mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/magit: init forge after building emacsql
This commit is contained in:
@ -96,9 +96,18 @@ ensure it is built when we actually use Forge."
|
||||
:before #'forge-dispatch
|
||||
(unless (file-executable-p emacsql-sqlite-executable)
|
||||
(emacsql-sqlite-compile 2)
|
||||
(unless (file-executable-p emacsql-sqlite-executable)
|
||||
(message (concat "Failed to build emacsql; forge may not work correctly.\n"
|
||||
"See *Compile-Log* buffer for details"))))))
|
||||
(if (not (file-executable-p emacsql-sqlite-executable))
|
||||
(message (concat "Failed to build emacsql; forge may not work correctly.\n"
|
||||
"See *Compile-Log* buffer for details"))
|
||||
;; HACK Due to changes upstream, forge doesn't initialize completely if
|
||||
;; it doesn't find `emacsql-sqlite-executable', so we have to do it
|
||||
;; manually after installing it.
|
||||
(setq forge--sqlite-available-p t)
|
||||
(magit-add-section-hook 'magit-status-sections-hook 'forge-insert-pullreqs nil t)
|
||||
(magit-add-section-hook 'magit-status-sections-hook 'forge-insert-issues nil t)
|
||||
(after! forge-topic
|
||||
(dolist (hook forge-bug-reference-hooks)
|
||||
(add-hook hook #'forge-bug-reference-setup)))))))
|
||||
|
||||
|
||||
(use-package! magit-todos
|
||||
|
Reference in New Issue
Block a user