aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-lang.el
blob: 341321a13b38b4dc12eb3ef47ac760ff4e6c1595 (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
(use-package ledger-mode :ensure t :defer t)
(add-to-list 'auto-mode-alist '("\\.journal\\'" . ledger-mode))
(with-eval-after-load 'ledger-mode
  (setq ledger-default-date-format ledger-iso-date-format))

(use-package go-mode :ensure t :defer t)
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
(add-hook 'go-mode-hook (lambda () (setq tab-width 4)))

(use-package go-dlv :ensure t :defer t)

(use-package eglot :ensure t :defer t)
(add-hook 'go-mode-hook 'eglot-ensure)

(use-package realgud :ensure t :defer t)

(use-package plantuml-mode :ensure t :defer t)
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(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)
(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)