Commit 1e8111ae9e72

Vincent Demeester <vincent@sbr.pm>
2025-04-23 12:50:42
tools/emacs: add a function to install devdocs
Because I never remember which one to setup on a new machine. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 050d667
Changed files (1)
tools
tools/emacs/config/programming-config.el
@@ -20,7 +20,40 @@
   (prog-mode . symbol-overlay-mode))
 
 (use-package devdocs
-  :bind (("C-h D" . devdocs-lookup)))
+  :commands (devdocs-lookup devdocs-install vde/install-devdocs)
+  :bind (("C-h D" . devdocs-lookup))
+  :config
+  (defun vde/install-devdocs ()
+    "Install the devdocs I am using the most."
+    (interactive)
+    (dolist (docset '("bash"
+		      "c"
+		      "click"
+		      "cpp"
+		      "css"
+		      "elisp"
+		      "flask"
+		      "git"
+		      "gnu_make"
+		      "go"
+		      "html"
+		      "htmx"
+		      "http"
+		      "javascript"
+		      "jq"
+		      "jquery"
+		      "kubectl"
+		      "kubernetes"
+		      "lua~5.4"
+		      "nix"
+		      "python~3.13"
+		      "python~3.12"
+		      "requests"
+		      "sqlite"
+		      "terraform"
+		      "werkzeug"
+		      "zig"))
+    (devdocs-install docset))))
 
 (use-package yaml-ts-mode
   :mode "\\.ya?ml\\'"