diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-01-07 10:00:41 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-01-07 10:00:41 +0100 |
| commit | eb311ace1b93b45e8deba7c60c2af98cc85de9aa (patch) | |
| tree | 0234a0271b395122981379e7263d48dc5d04ecc6 | |
| parent | 4c272bf2729b91518258cc94fdc6f9507ec6c62c (diff) | |
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)".
| -rw-r--r-- | config/emacs/init.el | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
