Skip to content

Commit 9c22b66

Browse files
authored
feat: configure devdocs (#391)
1 parent 86b27fd commit 9c22b66

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

init.org

+16-2
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,7 @@ Manage "popups".
11551155
(setq popper-reference-buffers
11561156
'("Output\\*$"
11571157
"\\*Messages\\*"
1158+
"\\*devdocs\\*"
11581159
"\\*envrc\\*"
11591160
"^\\*eldoc"
11601161
elisp-refs-mode
@@ -3084,7 +3085,11 @@ Add faces to =outline-minor-mode= in order to make the headings stand out.
30843085
("go\\.mod\\'" . go-mod-ts-mode)
30853086
:hook
30863087
(go-ts-mode-hook . eglot-ensure)
3088+
(go-ts-mode-hook . go-ts-mode-set-devdocs)
30873089
:config
3090+
(defun go-ts-mode-set-devdocs ()
3091+
(setq-local devdocs-current-docs '("go")))
3092+
30883093
(cl-pushnew '(go-mode . go-ts-mode) major-mode-remap-alist :test #'equal)
30893094

30903095
(with-eval-after-load 'apheleia
@@ -3370,13 +3375,17 @@ Pretty check-boxes
33703375
:mode "\\.nix\\'"
33713376
:hook
33723377
(nix-ts-mode-hook . eglot-ensure)
3378+
(nix-ts-mode-hook . nix-ts-mode-set-devdocs)
33733379
:init
33743380
(with-eval-after-load 'apheleia
33753381
(cl-pushnew '(nix-mode . nix) apheleia-mode-alist :test #'equal))
33763382
(with-eval-after-load 'grugru
33773383
(grugru-define-on-major-mode 'nix-mode 'symbol '("true" "false")))
33783384
(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"))))
33803389

33813390
(use-package nix-mode
33823391
:ensure t
@@ -3651,7 +3660,12 @@ Pretty check-boxes as well as bullet lists.
36513660
#+begin_src emacs-lisp :tangle yes
36523661
(use-package terraform-mode
36533662
: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"))))
36553669
#+end_src
36563670

36573671
** typescript

0 commit comments

Comments
 (0)