aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-lang.el
blob: f281ac98cd486f7a63a39138a23e3ea3984f3205 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(use-package ledger-mode
  :mode (("\\.journal$" . ledger-mode))
  :config
  (setq ledger-default-date-format ledger-iso-date-format))

(use-package markdown-mode
  :ensure t
  :commands (markdown-mode gfm-mode)
  :mode (("README\\.md\\'" . gfm-mode)
	 ("\\.md\\'" . markdown-mode)
	 ("\\.markdown\\'" . markdown-mode))
  :init
  (setq markdown-command '("pandoc" "--from=markdown" "--to=html5")))

(with-eval-after-load 'evil
  (evil-define-key 'normal markdown-mode-map
    (kbd "<RET>") 'markdown-follow-link-at-point))

(use-package go-mode
  :ensure t
  :commands (go-mode)
  :mode (("\\.go$" . go-mode))
  :hook ((go-mode . (lambda () (setq tab-width 4)))))

(use-package go-dlv
  :ensure t
  :after (go-mode))

(use-package eglot
  :ensure t
  :commands (eglot)
  :hook
  ((go-mode . eglot-ensure)))

(use-package magit
  :ensure t
  :commands (magit magit-status)
  :init
  (setq magit-refresh-status-buffer nil))

(with-eval-after-load 'evil
  (evil-define-key 'normal 'global
    (kbd "<leader>gs") 'magit))
  

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

(use-package plantuml-mode
  :ensure t
  :defer t
  :init
  (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
  :config
  (setq plantuml-jar-path "~/.local/bin/plantuml.jar"
	plantuml-default-exec-mode 'jar
	org-plantuml-jar-path "~/.local/bin/plantuml.jar"
	org-plantuml-default-exec-mode 'jar)
  (add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
  (unless (file-readable-p plantuml-jar-path)
      (plantuml-download-jar)))

(provide 'init-lang)