summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-09-22 10:35:39 +0800
committerJSDurand <mmemmew@gmail.com>2022-09-22 10:35:39 +0800
commit00e9684bc563024284b2e0521a9baa636a38f100 (patch)
tree6795335f4cdbe4b15ab57ac0e9a76a402960c896
parentdf39d29ec09150de5a9dab50870f4108c6849c56 (diff)
refine rust setup
* rumu.el (rumu-mode): Don't use syntax table to determine comments. That does not work here. * rust-conf.el (rustic-lsp-setup-p): Don't use lsp.
-rw-r--r--rumu.el2
-rw-r--r--rust-conf.el1
2 files changed, 2 insertions, 1 deletions
diff --git a/rumu.el b/rumu.el
index eeb900e..6afe414 100644
--- a/rumu.el
+++ b/rumu.el
@@ -32,7 +32,7 @@
"Major mode for editing rumu files."
(set (make-local-variable 'comment-start) ";")
(set (make-local-variable 'comment-end) "")
- (set (make-local-variable 'comment-use-syntax) t)
+ (set (make-local-variable 'comment-use-syntax) nil)
(set (make-local-variable 'comment-multi-line) nil))
(provide 'rumu)
diff --git a/rust-conf.el b/rust-conf.el
index 05f9e7c..bec85a3 100644
--- a/rust-conf.el
+++ b/rust-conf.el
@@ -52,6 +52,7 @@
(use-package "rustic" 'rustic)
(setq rustic-lsp-client 'eglot)
(setq rustic-format-on-save t)
+(setq rustic-lsp-setup-p nil)
(add-hook 'eglot-managed-mode-hook #'durand-rust-mode-hook)