use "\\'" instead of "$" in auto-mode-alist

This commit is contained in:
zedhugh committed 2026-08-31 00:51:52 +08:00
1 parent 525799407e
commit b301edb39e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@
(autoload 'lua-mode "lua-mode" "" t) (autoload 'lua-mode "lua-mode" "" t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-mode))
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode)) (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
+1 -1
View File
@@ -13,7 +13,7 @@
(file-name-concat (file-name-concat
(file-name-directory (or load-file-name buffer-file-name)) (file-name-directory (or load-file-name buffer-file-name))
"../tree-sitter-langs/tree-sitter-prisma")))) "../tree-sitter-langs/tree-sitter-prisma"))))
(add-to-list 'auto-mode-alist '("\\.prisma$" . prisma-ts-mode)) (add-to-list 'auto-mode-alist '("\\.prisma\\'" . prisma-ts-mode))
;; language server is `@prisma/language-server', install it by npm/pnpm/yarn. ;; language server is `@prisma/language-server', install it by npm/pnpm/yarn.
(with-eval-after-load 'eglot (with-eval-after-load 'eglot