blob: 4d568582a36a668a8a51677d821e096369fc6495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
(when (gx/maybe-require-package 'ledger-mode)
(add-to-list 'auto-mode-alist '("\\.journal\\'" . ledger-mode)))
(with-eval-after-load 'ledger-mode
(setq ledger-default-date-format ledger-iso-date-format))
(when (gx/maybe-require-package 'go-mode)
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
(add-hook 'go-mode-hook (lambda () (setq tab-width 4))))
(gx/maybe-require-package 'go-dlv)
(when (gx/maybe-require-package 'eglot)
(add-hook 'go-mode-hook 'eglot-ensure))
(gx/maybe-require-package 'realgud)
(setq plantuml-jar-path "~/.local/bin/plantuml.jar"
plantuml-default-exec-mode 'jar
org-plantuml-jar-path plantuml-jar-path
org-plantuml-default-exec-mode 'jar)
(when (gx/maybe-require-package 'plantuml-mode)
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(unless (file-readable-p plantuml-jar-path)
(plantuml-download-jar))
(with-eval-after-load 'org
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))))
(provide 'init-lang)
|