build: add -ts- support to dir-locals

This commit is contained in:
Dirk-Jan C. Binnema 2022-12-24 09:29:42 +02:00
parent ec1d6c47df
commit 645956f9d8
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,4 @@
;;; Directory Local Variables -*- no-byte-compile: t; -*-
;;; For more information see (info "(emacs) Directory Variables")
;;; -*- no-byte-compile: t; -*-
((nil . ((tab-width . 8)
(fill-column . 80)
;; (commment-fill-column . 80)
@ -8,10 +7,18 @@
(c-mode . ((c-file-style . "linux")
(indent-tabs-mode . t)
(mode . bug-reference-prog)))
(c-ts-mode . ((indent-tabs-mode . t)
(c-ts-mode-indent-style . linux)
(c-ts-mode-indent-offset . 8)
(mode . bug-reference-prog)))
(c++-mode . ((c-file-style . "linux")
(fill-column . 100)
;; (comment-fill-column . 80)
(mode . bug-reference-prog)))
(c++-ts-mode . ((indent-tabs-mode . t)
(c-ts-mode-indent-style . linux)
(c-ts-mode-indent-offset . 8)
(mode . bug-reference-prog)))
(emacs-lisp-mode . ((indent-tabs-mode . nil)
(mode . bug-reference-prog)))
(lisp-data-mode . ((indent-tabs-mode . nil)))