Updated the plantuml plugin to use `plantuml-mode` instead of the now deprecated `puml-mode`

This commit is contained in:
Carlo Sciolla 2016-10-16 17:36:58 +02:00 committed by Boris
parent 22809a8dfa
commit 9d3710a05f
2 changed files with 14 additions and 9 deletions

View File

@ -8,7 +8,7 @@
- [[#key-bindings][Key bindings]]
* 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.
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]].

View File

@ -3,25 +3,30 @@
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Robert O'Connor <robby.oconnor@gmail.com>
;; Contributor: Carlo Sciolla <carlo.sciolla@gmail.com>
;; URL: https://github.com/robbyoconnor
;;
;;; Commentary:
;;
;; Adds PlantUML support to Spacemacs using plantuml-mode.
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; Code:
(defconst plantuml-packages
'(org
puml-mode))
plantuml-mode))
(defun plantuml/post-init-org ()
(spacemacs|use-package-add-hook org
:post-config (add-to-list 'org-babel-load-languages '(plantuml . t))))
(defun plantuml/init-puml-mode ()
(use-package puml-mode
(defun plantuml/init-plantuml-mode ()
(use-package plantuml-mode
:defer t
:mode ("\\.pum\\'" . puml-mode)
:config (spacemacs/set-leader-keys-for-major-mode 'puml-mode
"cc" 'puml-preview
"co" 'puml-set-output-type)))
:mode ("\\.pum\\'" . plantuml-mode)
:config (spacemacs/set-leader-keys-for-major-mode 'plantuml-mode
"cc" 'plantuml-preview
"co" 'plantuml-set-output-type)))