From eb311ace1b93b45e8deba7c60c2af98cc85de9aa Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Wed, 7 Jan 2026 10:00:41 +0100 Subject: Fix Tree-Sitter Major Modes Setup Fix the TypeScript setup that we broke in the last commit (I had assumed that the TS major mode was enabled by default). Additionally, we add a more useful keybinding for complete-at-point (the default one `C-M-i` was too awkward for me). It is also an mnemonicly easy to remember "**C**omplete at . (point)". --- config/emacs/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/emacs/init.el b/config/emacs/init.el index d436f6b..b8a6c8f 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -65,6 +65,7 @@ If the current buffer is not open in the devbox, then this function just runs :bind (("C-c ," . init/open-local-init) ("C-c C-," . init/open-init) ("C-c C-j" . init/open-journal) + ("C-." . completion-at-point) ("C-x k" . kill-current-buffer) ("M-/" . hippie-expand)) :custom @@ -254,6 +255,13 @@ If the current buffer is not open in the devbox, then this function just runs :ensure t :mode "\\.sol\\'")) +;;; -- TypeScript -- + +(use-package typescript-ts-mode + :mode (("\\.ts\\'" . typescript-ts-mode) + ("\\.tsx\\'" . tsx-ts-mode)) + :hook ((typescript-ts-base-mode . eglot-ensure))) + ;;; -- Miscellaneous -- (use-package dockerfile-mode -- cgit v1.2.3