LoginSignup
0
0

More than 1 year has passed since last update.

macOS + emacsで PlantUML

Last updated at Posted at 2021-09-05

Homebrewで PlantUMLをインストール

brew install plantuml

emacsの設定

C-x package-list-package で plantuml-modeをインストール
スクリーンショット 2021-09-05 11.05.22.png

.emacsの設定

(add-to-list 'auto-mode-alist '("\\.plantuml$'" . plantuml-mode))
(setq plantuml-executable-path "/usr/local/bin/plantuml")
(setq plantuml-default-exec-mode 'executable)
(setq plantuml-output-type "png")

(defun plantuml-preview-frame (prefix)
  (interactive "p")  
  (plantuml-preview 16)
  )
(add-hook 'plantuml-mode-hook
          (lambda ()
            (setq plantuml-executable-args
                  (append plantuml-executable-args '("-charset" "UTF-8"))
                  )
            )
          )

動作確認

test.gif

感想

コード補完の性能は vscodeのほうがいいかなという感じではあるが、emacsのほうが慣れているのでまあ気分で使い分けていくと思う。

参考

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0