Add functionality to save to file

This commit is contained in:
vkartha 2019-01-15 17:06:30 +05:30
parent 366ecb605a
commit 5e6532b091
1 changed files with 9 additions and 0 deletions

View File

@ -334,6 +334,15 @@ Uses prefix (as PREFIX) to choose where to display it:
(plantuml-preview-region prefix (region-beginning) (region-end))
(plantuml-preview-buffer prefix)))
(defun plantuml-save-to-file ()
(interactive)
(clipboard-kill-ring-save (point-min) (point-max))
(generate-new-buffer "untitled")
(switch-to-buffer "untitled")
(yank)
(save-buffer)
)
(defun plantuml-init-once ()
"Ensure initialization only happens once."
(unless plantuml-kwdList