Add lang/plantuml

This commit is contained in:
Henrik Lissner 2017-07-08 23:05:23 +02:00
parent be4eeac705
commit 9a74124ede
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 47 additions and 0 deletions

View file

@ -558,6 +558,18 @@ you came from."
(advice-add #'xref-goto-xref :around #'doom*xref-follow-and-close))
;;
;; Major modes
;;
(after! plantuml-mode
(defun doom*plantuml-preview-in-popup-window (orig-fn &rest args)
(save-window-excursion
(apply orig-fn args))
(pop-to-buffer plantuml-preview-buffer))
(advice-add #'plantuml-preview-string
:around #'doom*plantuml-preview-in-popup-window))
;; Ensure these settings are attached to org-load-hook as late as possible,
;; giving other modules a chance to add their own hooks.
(defun doom|init-org-popups ()