Function: gitattributes-generic-ts-mode

gitattributes-generic-ts-mode is an interactive and byte-compiled function defined in treesit-x.el.gz.

Signature

(gitattributes-generic-ts-mode)

Documentation

Tree-sitter generic mode for .gitattributes files.

This mode runs the hook gitattributes-generic-ts-mode-hook, as the final or penultimate step during initialization.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/treesit-x.el.gz
;;; Default treesit generic modes

(define-treesit-generic-mode gitattributes-generic-ts-mode
  "Tree-sitter generic mode for .gitattributes files."
  :lang 'gitattributes
  :source '("https://github.com/tree-sitter-grammars/tree-sitter-gitattributes"
            :commit "5425944fd61bf2b3bad2c17c2dc9f53172b0f01d"
            :copy-queries t)
  :auto-mode "gitattributes\\'"
  :name "Git-Attributes"
  (setq-local comment-start "# ")
  (setq-local comment-end ""))