]> xn--ix-yja.es Git - alex.git/commitdiff
Switch to rustic and remove some hover/mouse stuff that does not seem needed any...
authoralex <alex@pdp7.net>
Sat, 29 Mar 2025 11:16:36 +0000 (12:16 +0100)
committeralexpdp7 <alex@corcoles.net>
Sat, 29 Mar 2025 12:09:32 +0000 (13:09 +0100)
emacs/emacs.el
emacs/plan.org

index 3b56e60b743cbf0c4c03e7aeb9bf9660cd7e00eb..a0d03ae98d02b9f7d01b337bc813b862717fdf87 100644 (file)
 (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))
 
 (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
index 962c33d493be749cf47556b94a5aabfc539c25ce..5b43b251a677b70842c9dc3ecd37d15eb907726a 100644 (file)
@@ -1,4 +1,3 @@
 * Disable custom variables appending to config
 * Helm/company alternatives
-* Rustic
 * Magit