diff --git a/SwarselSystems.org b/SwarselSystems.org index eb59bec..4ab9b32 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -9777,9 +9777,16 @@ This sets up rustic-mode with tree-sitter support - there is still one issue to :init (setq rust-mode-treesitter-derive t) :config + (define-key rust-ts-mode-map (kbd "C-c C-c C-r") 'rustic-cargo-run) + (define-key rust-ts-mode-map (kbd "C-c C-c C-b") 'rustic-cargo-build) + (define-key rust-ts-mode-map (kbd "C-c C-c C-k") 'rustic-cargo-check) + (define-key rust-ts-mode-map (kbd "C-c C-c d") 'rustic-cargo-doc) + (define-key rust-ts-mode-map (kbd "C-c C-c a") 'rustic-cargo-add) (setq rustic-format-on-save t) (setq rustic-lsp-client 'eglot) :mode ("\\.rs" . rustic-mode)) + + #+end_src *** Tramp @@ -9955,8 +9962,8 @@ After having tried out =lsp-mode= and =lsp-bridge= for a while each, I must say c-ts-mode c++-mode c++-ts-mode - rustic-mode rust-ts-mode + rustic-mode tex-mode LaTeX-mode ) . (lambda () (progn diff --git a/index.html b/index.html index 0432aaf..38cf104 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +-This file has 40447 words spanning 10472 lines and was last revised on 2024-06-28 22:13:57 +0200. +This file has 40741 words spanning 10531 lines and was last revised on 2024-07-11 10:18:39 +0200.
@@ -419,7 +419,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
-My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-06-28 22:13:57 +0200) +My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-11 10:18:39 +0200)
@@ -485,7 +485,6 @@ window.addEventListener('load', addDarkmodeWidget); -hwmon
+
+The nix store fills up over time, until /boot/efi is filled. This snippet cleans it automatically on a weekly basis.
+
+nix.gc = {
+ automatic = true;
+ randomizedDelaySec = "14m";
+ dates = "weekly";
+ options = "--delete-older-than 10d";
+};
+
+
++This enables hardlinking identical files in the nix store, to save on disk space. I have read this incurs a significant I/O overhead, I need to keep an eye on this. +
+ +
+nix.optimise = {
+ automatic = true;
+ dates = [ "weekly" ];
+};
+
+
++Also, we link some files to the users XDG configuration home: +
+ +
+xdg.configFile = {
+ "tridactyl/tridactylrc".source = ../../programs/firefox/tridactyl/tridactylrc;
+ "tridactyl/themes/base16-codeschool.css".source = ../../programs/firefox/tridactyl/themes/base16-codeschool.css;
+ };
+
devdocs=install command and sel
(add-hook 'c++-ts-mode-hook
(lambda () (setq-local devdocs-current-docs '("cpp"))))
-(devdocs-update-all)
+; (devdocs-update-all)
lsp-mode and lsp-bridge for a w
c-ts-mode
c++-mode
c++-ts-mode
- rustic-mode
rust-ts-mode
+ rustic-mode
tex-mode
LaTeX-mode
) . (lambda () (progn
@@ -12550,7 +12622,7 @@ This sets up the dashboard, which is really quite useless. But, it
diff --git a/programs/emacs/init.el b/programs/emacs/init.el
index eae9a4b..7bf2f3f 100644
--- a/programs/emacs/init.el
+++ b/programs/emacs/init.el
@@ -1288,6 +1288,11 @@ create a new one."
:init
(setq rust-mode-treesitter-derive t)
:config
+ (define-key rust-ts-mode-map (kbd "C-c C-c C-r") 'rustic-cargo-run)
+ (define-key rust-ts-mode-map (kbd "C-c C-c C-b") 'rustic-cargo-build)
+ (define-key rust-ts-mode-map (kbd "C-c C-c C-k") 'rustic-cargo-check)
+ (define-key rust-ts-mode-map (kbd "C-c C-c d") 'rustic-cargo-doc)
+ (define-key rust-ts-mode-map (kbd "C-c C-c a") 'rustic-cargo-add)
(setq rustic-format-on-save t)
(setq rustic-lsp-client 'eglot)
:mode ("\\.rs" . rustic-mode))
@@ -1388,8 +1393,8 @@ create a new one."
c-ts-mode
c++-mode
c++-ts-mode
- rustic-mode
rust-ts-mode
+ rustic-mode
tex-mode
LaTeX-mode
) . (lambda () (progn