aboutsummaryrefslogtreecommitdiffstats
path: root/emacs.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.el')
-rw-r--r--emacs.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs.el b/emacs.el
index 9cd984b..748f44c 100644
--- a/emacs.el
+++ b/emacs.el
@@ -262,8 +262,12 @@
;;; ============================================================================
(use-package eglot
+ ;; NOTE: python-mode is deliberately NOT hooked here. Mode hooks run
+ ;; before .dir-locals.el applies, so this would always connect to the
+ ;; system pylsp. Python eglot is started per-project from
+ ;; .dir-locals.el (micromamba envs) -- see emacs_setup README.
:hook (((clojure-mode clojurec-mode clojurescript-mode
- java-mode scala-mode python-mode) . eglot-ensure)
+ java-mode scala-mode) . eglot-ensure)
((cider-mode eglot-managed-mode) . eglot-disable-in-cider))
:preface
(defun eglot-disable-in-cider ()
@@ -639,6 +643,12 @@
(put 'upcase-region 'disabled nil)
+;; Packages like go-mode reference lsp-mode/eglot functions they don't
+;; require; native-comp warnings about those are harmless noise. Keep them
+;; out of *Warnings*. (Must come AFTER custom-set-variables above, which
+;; rewrites warning-suppress-types.)
+(add-to-list 'warning-suppress-types '(native-compiler))
+
;;; PSL tree-sitter mode
(add-to-list 'load-path "~/.emacs.d/psl-ts-mode")
(require 'psl-ts-mode)