@@ -1155,6 +1155,7 @@ Manage "popups".
1155
1155
(setq popper-reference-buffers
1156
1156
'("Output\\*$"
1157
1157
"\\*Messages\\*"
1158
+ "\\*devdocs\\*"
1158
1159
"\\*envrc\\*"
1159
1160
"^\\*eldoc"
1160
1161
elisp-refs-mode
@@ -3084,7 +3085,11 @@ Add faces to =outline-minor-mode= in order to make the headings stand out.
3084
3085
("go\\.mod\\'" . go-mod-ts-mode)
3085
3086
:hook
3086
3087
(go-ts-mode-hook . eglot-ensure)
3088
+ (go-ts-mode-hook . go-ts-mode-set-devdocs)
3087
3089
:config
3090
+ (defun go-ts-mode-set-devdocs ()
3091
+ (setq-local devdocs-current-docs '("go")))
3092
+
3088
3093
(cl-pushnew '(go-mode . go-ts-mode) major-mode-remap-alist :test #'equal)
3089
3094
3090
3095
(with-eval-after-load 'apheleia
@@ -3370,13 +3375,17 @@ Pretty check-boxes
3370
3375
:mode "\\.nix\\'"
3371
3376
:hook
3372
3377
(nix-ts-mode-hook . eglot-ensure)
3378
+ (nix-ts-mode-hook . nix-ts-mode-set-devdocs)
3373
3379
:init
3374
3380
(with-eval-after-load 'apheleia
3375
3381
(cl-pushnew '(nix-mode . nix) apheleia-mode-alist :test #'equal))
3376
3382
(with-eval-after-load 'grugru
3377
3383
(grugru-define-on-major-mode 'nix-mode 'symbol '("true" "false")))
3378
3384
(with-eval-after-load 'repl-toggle
3379
- (cl-pushnew '(nix-ts-mode . nix-repl) rtog/mode-repl-alist :test #'equal)))
3385
+ (cl-pushnew '(nix-ts-mode . nix-repl) rtog/mode-repl-alist :test #'equal))
3386
+ :config
3387
+ (defun nix-ts-mode-set-devdocs ()
3388
+ (setq-local devdocs-current-docs '("nix"))))
3380
3389
3381
3390
(use-package nix-mode
3382
3391
:ensure t
@@ -3651,7 +3660,12 @@ Pretty check-boxes as well as bullet lists.
3651
3660
#+begin_src emacs-lisp :tangle yes
3652
3661
(use-package terraform-mode
3653
3662
:ensure t
3654
- :mode "\\.tf$")
3663
+ :mode "\\.tf$"
3664
+ :hook
3665
+ (terraform-mode-hook . terraform-mode-set-devdocs)
3666
+ :config
3667
+ (defun terraform-mode-set-devdocs ()
3668
+ (setq-local devdocs-current-docs '("terraform"))))
3655
3669
#+end_src
3656
3670
3657
3671
** typescript
0 commit comments