Skip to content

Commit

Permalink
restored c++-ts-mode for headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hcorg committed Aug 8, 2024
1 parent f0d2425 commit e85b2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions personal/personal-cc.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
;; headers as c++
(setq include-base-dir "/usr/include/")

(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(add-to-list 'auto-mode-alist (cons include-base-dir 'c++-mode))
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-ts-mode))
(add-to-list 'auto-mode-alist (cons include-base-dir 'c++-ts-mode))

(defun my-cc-whitespace ()
(setq tab-width 2)
Expand Down

0 comments on commit e85b2e4

Please sign in to comment.