From 35c50232093f5f3cf82772a687a0ed0cc7fb74c4 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 29 Mar 2025 12:16:36 +0100 Subject: [PATCH] Switch to rustic and remove some hover/mouse stuff that does not seem needed any more --- emacs/emacs.el | 19 ++----------------- emacs/plan.org | 1 - 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index 3b56e60..a0d03ae 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 "> ")) #'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 962c33d..5b43b25 100644 --- a/emacs/plan.org +++ b/emacs/plan.org @@ -1,4 +1,3 @@ * Disable custom variables appending to config * Helm/company alternatives -* Rustic * Magit -- 2.47.3