Updated the plantuml plugin to use plantuml-mode
instead of the now deprecated puml-mode
This commit is contained in:
parent
22809a8dfa
commit
9d3710a05f
|
@ -8,7 +8,7 @@
|
||||||
- [[#key-bindings][Key bindings]]
|
- [[#key-bindings][Key bindings]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
This layer enables support for [[https://github.com/skuro/puml-mode][puml-mode]], which provides
|
This layer enables support for [[https://github.com/skuro/plantuml-mode][plantuml-mode]], which provides
|
||||||
a major-mode for [[http://plantuml.com][plantuml]]. PlantUML is a tool to generate [[https://en.wikipedia.org/wiki/Unified_Modeling_Language][UML diagrams]] from plain-text.
|
a major-mode for [[http://plantuml.com][plantuml]]. PlantUML is a tool to generate [[https://en.wikipedia.org/wiki/Unified_Modeling_Language][UML diagrams]] from plain-text.
|
||||||
|
|
||||||
For help with how to use plantuml, see the [[http://plantuml.com][plantuml website]] and the [[http://plantuml.com/PlantUML_Language_Reference_Guide.pdf][reference guide]].
|
For help with how to use plantuml, see the [[http://plantuml.com][plantuml website]] and the [[http://plantuml.com/PlantUML_Language_Reference_Guide.pdf][reference guide]].
|
||||||
|
|
|
@ -3,25 +3,30 @@
|
||||||
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
||||||
;;
|
;;
|
||||||
;; Author: Robert O'Connor <robby.oconnor@gmail.com>
|
;; Author: Robert O'Connor <robby.oconnor@gmail.com>
|
||||||
|
;; Contributor: Carlo Sciolla <carlo.sciolla@gmail.com>
|
||||||
;; URL: https://github.com/robbyoconnor
|
;; URL: https://github.com/robbyoconnor
|
||||||
;;
|
;;
|
||||||
|
;;; Commentary:
|
||||||
|
;;
|
||||||
|
;; Adds PlantUML support to Spacemacs using plantuml-mode.
|
||||||
;; This file is not part of GNU Emacs.
|
;; This file is not part of GNU Emacs.
|
||||||
;;
|
;;
|
||||||
;;; License: GPLv3
|
;;; License: GPLv3
|
||||||
|
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
(defconst plantuml-packages
|
(defconst plantuml-packages
|
||||||
'(org
|
'(org
|
||||||
puml-mode))
|
plantuml-mode))
|
||||||
|
|
||||||
(defun plantuml/post-init-org ()
|
(defun plantuml/post-init-org ()
|
||||||
(spacemacs|use-package-add-hook org
|
(spacemacs|use-package-add-hook org
|
||||||
:post-config (add-to-list 'org-babel-load-languages '(plantuml . t))))
|
:post-config (add-to-list 'org-babel-load-languages '(plantuml . t))))
|
||||||
|
|
||||||
(defun plantuml/init-puml-mode ()
|
(defun plantuml/init-plantuml-mode ()
|
||||||
(use-package puml-mode
|
(use-package plantuml-mode
|
||||||
:defer t
|
:defer t
|
||||||
:mode ("\\.pum\\'" . puml-mode)
|
:mode ("\\.pum\\'" . plantuml-mode)
|
||||||
:config (spacemacs/set-leader-keys-for-major-mode 'puml-mode
|
:config (spacemacs/set-leader-keys-for-major-mode 'plantuml-mode
|
||||||
"cc" 'puml-preview
|
"cc" 'plantuml-preview
|
||||||
"co" 'puml-set-output-type)))
|
"co" 'plantuml-set-output-type)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue