Function: go-work-ts-mode-maybe
go-work-ts-mode-maybe is an autoloaded and byte-compiled function
defined in go-ts-mode.el.gz.
Signature
(go-work-ts-mode-maybe)
Documentation
Enable go-work-ts-mode when its grammar is available.
Also propose to install the grammar when treesit-enabled-modes
is t or contains the mode name.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/go-ts-mode.el.gz
;;;###autoload
(defun go-work-ts-mode-maybe ()
"Enable `go-work-ts-mode' when its grammar is available.
Also propose to install the grammar when `treesit-enabled-modes'
is t or contains the mode name."
(declare-function treesit-language-available-p "treesit.c")
(if (or (treesit-language-available-p 'gowork)
(eq treesit-enabled-modes t)
(memq 'go-work-ts-mode treesit-enabled-modes))
(go-work-ts-mode)
(fundamental-mode)))