(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)