emacs: remove d-ts-mode
This commit is contained in:
parent
f7fc64e09b
commit
d5eb4f76db
1 changed files with 4 additions and 2 deletions
|
@ -54,7 +54,6 @@ One will be created if none exist."
|
||||||
|
|
||||||
;; modes
|
;; modes
|
||||||
(require 'cc-mode)
|
(require 'cc-mode)
|
||||||
(require 'd-ts-mode)
|
|
||||||
(package-install 'git-modes)
|
(package-install 'git-modes)
|
||||||
(package-install 'json-mode)
|
(package-install 'json-mode)
|
||||||
(package-install 'lua-mode)
|
(package-install 'lua-mode)
|
||||||
|
@ -112,6 +111,9 @@ One will be created if none exist."
|
||||||
'((c-mode . c-ts-mode)
|
'((c-mode . c-ts-mode)
|
||||||
(c++-mode . c++-ts-mode)
|
(c++-mode . c++-ts-mode)
|
||||||
(sh-mode . bash-ts-mode)))
|
(sh-mode . bash-ts-mode)))
|
||||||
|
|
||||||
|
(package-install 'd-mode)
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.di?\\'" . d-mode))
|
||||||
;; fix to make d-mode highlight primitive types properly
|
;; fix to make d-mode highlight primitive types properly
|
||||||
(font-lock-add-keywords 'd-mode
|
(font-lock-add-keywords 'd-mode
|
||||||
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face)))
|
'(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face)))
|
||||||
|
@ -163,7 +165,7 @@ One will be created if none exist."
|
||||||
(require 'eglot)
|
(require 'eglot)
|
||||||
(add-hook 'c-ts-mode-hook 'eglot-ensure)
|
(add-hook 'c-ts-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'c++-ts-mode-hook 'eglot-ensure)
|
(add-hook 'c++-ts-mode-hook 'eglot-ensure)
|
||||||
(add-to-list 'eglot-server-programs `(d-ts-mode . ("serve-d")))
|
(add-to-list 'eglot-server-programs `(d-mode . ("serve-d")))
|
||||||
|
|
||||||
;; diff information in the gutter
|
;; diff information in the gutter
|
||||||
(package-install 'diff-hl)
|
(package-install 'diff-hl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue