Skip to content

Commit

Permalink
[emacs] Tell plantuml mode to show preview through jar file
Browse files Browse the repository at this point in the history
Previously it generated the preview through the online API,
which failed since a while. Seems to be a problem of
plantuml-mode.
See skuro/plantuml-mode#146
  • Loading branch information
fapdash committed Sep 24, 2022
1 parent 6c2b7ff commit 50d988b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs/.emacs
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,8 @@ the mode, `toggle' toggles the state."
:init
(add-to-list 'auto-mode-alist '("\\.puml\\'" . plantuml-mode))
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(setq plantuml-jar-path (concat (getenv "HOME") "/plantUML/plantuml.jar"))
(setq plantuml-default-exec-mode 'jar)
(setq plantuml-jar-path (concat (getenv "HOME") "/plantuml/plantuml.jar"))
:config
;; puml doesn't support auto-indent
(add-hook 'plantuml-mode-hook (lambda () (aggressive-indent-mode -1))))
Expand Down

0 comments on commit 50d988b

Please sign in to comment.