diff --git a/emacs/.emacs.d/config/init-devdocs.el b/emacs/.emacs.d/config/init-devdocs.el index e254888..eb91846 100644 --- a/emacs/.emacs.d/config/init-devdocs.el +++ b/emacs/.emacs.d/config/init-devdocs.el @@ -5,7 +5,8 @@ devdocs-lookup devdocs-install devdocs-delete - devdocs-update-all) + devdocs-update-all + devdocs-as-string) :config (defvar devdocs-entry-aliases nil "Alist mapping expected DevDocs entry names to their actual names.") diff --git a/emacs/.emacs.d/config/init-terraform.el b/emacs/.emacs.d/config/init-terraform.el index df443fe..1fb77ca 100644 --- a/emacs/.emacs.d/config/init-terraform.el +++ b/emacs/.emacs.d/config/init-terraform.el @@ -8,7 +8,8 @@ "Returns the devdocs for Terraform resource RESOURCE of type TYPE (\"data\" or \"resource\")as a string." (devdocs-as-string resource "terraform" type)) - (add-to-list 'devdocs-entry-aliases '("aws_alb" . "aws_lb")) + (with-eval-after-load 'devdocs + (add-to-list 'devdocs-entry-aliases '("aws_alb" . "aws_lb"))) (defun terraform-block-metadata-at-pos (pos) (let* ((parser (treesit-parser-create 'hcl)) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 7a31a15..7038978 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -109,6 +109,7 @@ (require 'init-xml) (require 'init-yaml) (require 'init-groovy) +(require 'init-devdocs) (require 'init-terraform) (require 'init-docker) (require 'init-nix) @@ -122,7 +123,6 @@ (require 'init-epub) (require 'init-pdf) (require 'init-homebrew) -(require 'init-devdocs) (require 'init-elfeed) (require 'init-1pass) (require 'init-wallabag)