biome-grid: run biome-grid-mode-hook after buffer init

This commit is contained in:
Pavel Korytov 2024-01-25 17:07:00 +03:00
parent c879e80dfe
commit 8fae4deec3

View file

@ -661,11 +661,13 @@ displaying more columns than the window width, so there's
`biome-grid-columns' to toggle columns." `biome-grid-columns' to toggle columns."
(let ((buf (generate-new-buffer "*biome-grid*"))) (let ((buf (generate-new-buffer "*biome-grid*")))
(with-current-buffer buf (with-current-buffer buf
(biome-grid-mode) (let (biome-grid-mode-hook)
(biome-grid-mode))
(biome-grid--set-list query results) (biome-grid--set-list query results)
(tabulated-list-print t) (tabulated-list-print t)
(tabulated-list-init-header) (tabulated-list-init-header)
(toggle-truncate-lines 1)) (toggle-truncate-lines 1)
(run-mode-hooks 'biome-grid-mode-hook))
(switch-to-buffer buf))) (switch-to-buffer buf)))
(provide 'biome-grid) (provide 'biome-grid)