From 211904a190906b9c1a60be5cc32920429a9e5d9f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 28 Jun 2024 13:58:29 -0400 Subject: [PATCH] Fix terraform devdocs eldoc docs --- emacs/.emacs.d/config/init-devdocs.el | 3 ++- emacs/.emacs.d/config/init-terraform.el | 3 ++- emacs/.emacs.d/init.el | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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)