From e2a148c254461ec05ae90ef2a4efa1f7c0b22d6e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 28 Apr 2024 09:13:44 +0200 Subject: emacs: remove unused major modes: rustic, scss, js2, rjsx --- user/emacs/init.el | 13 +------------ user/settings/development/javascript.nix | 3 --- user/settings/development/rust.nix | 3 --- user/settings/development/web.nix | 1 - 4 files changed, 1 insertion(+), 19 deletions(-) diff --git a/user/emacs/init.el b/user/emacs/init.el index 4e9d982b..5282a0a4 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -763,16 +763,6 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (add-to-list 'eglot-server-programs '(nim-mode "nimlsp")))) -;;;; rust -(use-package rustic - :mode (("\\.rs\\'" . rustic-mode)) - :if (package-installed-p 'rustic) - :config (progn - (setq rustic-format-on-save t) - (with-eval-after-load 'flycheck - (add-to-list 'flycheck-checkers 'rustic-clippy)))) -(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode)) - ;;;; js (setq js-indent-level 2 js-enabled-frameworks '(javascript)) @@ -1064,7 +1054,6 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve go-ts-mode-hook lua-mode-hook nim-mode-hook - scss-mode-hook html-mode-hook nix-mode-hook haskell-mode-hook) @@ -1099,7 +1088,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (use-package add-node-modules-path :config (setq add-node-modules-max-depth 6) - :ghook ('(feature-mode-hook js2-mode-hook json-ts-mode-hook typescript-ts-mode-hook) #'add-node-modules-path)) + :ghook ('(feature-mode-hook json-ts-mode-hook typescript-ts-mode-hook) #'add-node-modules-path)) ;;;; Reformat on save diff --git a/user/settings/development/javascript.nix b/user/settings/development/javascript.nix index bea1f02c..428d7b64 100644 --- a/user/settings/development/javascript.nix +++ b/user/settings/development/javascript.nix @@ -35,9 +35,6 @@ programs.emacs.extraPackages = epkgs: (with epkgs; [ add-node-modules-path - js2-mode - rjsx-mode - tide typescript-mode ]); diff --git a/user/settings/development/rust.nix b/user/settings/development/rust.nix index 46f3f4f1..c1b1a9df 100644 --- a/user/settings/development/rust.nix +++ b/user/settings/development/rust.nix @@ -10,7 +10,4 @@ rust-analyzer clippy ]; - programs.emacs.extraPackages = epkgs: (with epkgs; [ - rustic - ]); } diff --git a/user/settings/development/web.nix b/user/settings/development/web.nix index 7570cadb..272b874d 100644 --- a/user/settings/development/web.nix +++ b/user/settings/development/web.nix @@ -22,7 +22,6 @@ emmet-mode nginx-mode restclient - scss-mode web-mode ]); programs.neovim.plugins = with pkgs.vimPlugins; [ -- cgit 1.4.1