aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-03-29 12:16:36 +0100
committeralexpdp7 <alex@corcoles.net>2025-03-29 13:09:32 +0100
commit35c50232093f5f3cf82772a687a0ed0cc7fb74c4 (patch)
tree1de110273f927e0441457e93c3aa8b91949a0f7a /emacs
parent6f2d849c5278a6fa9044b89ec59443b1d0edcca8 (diff)
Switch to rustic and remove some hover/mouse stuff that does not seem needed any more
Diffstat (limited to 'emacs')
-rw-r--r--emacs/emacs.el19
-rw-r--r--emacs/plan.org1
2 files changed, 2 insertions, 18 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index 3b56e60b..a0d03ae9 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -24,18 +24,6 @@
(require-theme 'modus-themes)
(load-theme 'modus-vivendi :no-confirm)
-;; From https://github.com/emacs-lsp/lsp-ui/issues/607 , silence some mouse hovering noise
-(let ((areas '("mode-line" "left-margin" "left-fringe" "right-fringe" "header-line" "vertical-scroll-bar"))
- loc)
- (while areas
- (setq loc (pop areas))
- (global-set-key
- (kbd (concat "<" loc "> <mouse-movement>")) #'ignore)))
-
-;; I use Emacs in the terminal, where x-pos|hide-tip is not defined. This masks errors :(
-(defun x-pos-tip () nil)
-(defun x-hide-tip () nil)
-
(global-whitespace-mode)
(setopt whitespace-style '(tab-mark))
@@ -98,13 +86,10 @@
(yas-global-mode 1)
;; Rust support
-(use-package rust-mode
+(use-package rustic
:ensure t
:config
- (add-hook 'rust-mode-hook #'lsp)
- (add-hook 'rust-mode-hook
- (lambda () (setq indent-tabs-mode nil)))
- (setq rust-format-on-save t))
+ (setq rustic-format-on-save t))
;; Python support
; https://github.com/jorgenschaefer/elpy/issues/1890#issuecomment-792361668
diff --git a/emacs/plan.org b/emacs/plan.org
index 962c33d4..5b43b251 100644
--- a/emacs/plan.org
+++ b/emacs/plan.org
@@ -1,4 +1,3 @@
* Disable custom variables appending to config
* Helm/company alternatives
-* Rustic
* Magit