diff options
Diffstat (limited to 'emacs-config.org')
| -rw-r--r-- | emacs-config.org | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/emacs-config.org b/emacs-config.org index 4aaeaba..f40d76f 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -1559,12 +1559,15 @@ Configure eglot. Enable eglot for certain modes. #+begin_src elisp - (add-hook 'c-mode-hook #'eglot-ensure) - (add-hook 'c++-mode-hook #'eglot-ensure) + ;; C/C++ Req. `clangd' + ;; JS Req. `typescript-language-server' + ;; Python Req. `python-lsp-server' + (dolist (mode '(c c++ js python)) + (add-hook (intern (format "%s-mode-hook" mode)) #'eglot-ensure) + (add-hook (intern (format "%s-ts-mode-hook" mode)) #'eglot-ensure)) #+end_src ** View Mode - Simplify navigation when using view mode. #+begin_src elisp (setq-default view-read-only t) |
