add plantuml-mode
This commit is contained in:
6 files changed
+39
-1
No files matched your search
@@ -187,3 +187,6 @@
|
||||
[submodule "site-lisp/emacs-flymake-eslint"]
|
||||
path = site-lisp/emacs-flymake-eslint
|
||||
url = https://github.com/zedhugh/emacs-flymake-eslint.git
|
||||
[submodule "site-lisp/plantuml-mode"]
|
||||
path = site-lisp/plantuml-mode
|
||||
url = https://github.com/skuro/plantuml-mode.git
|
||||
@@ -132,6 +132,7 @@ If freezing sometimes, decrease it. If stuttering, increase it.")
|
||||
(require 'init-ace-window)
|
||||
(require 'init-markdown)
|
||||
(require 'init-media)
|
||||
(require 'init-plantuml)
|
||||
|
||||
|
||||
(setq custom-file (expand-file-name "custom.el" creature/cache-dir))
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
'("\\.editorconfig\\'" . editorconfig-conf-mode))
|
||||
|
||||
(with-eval-after-load 'editorconfig
|
||||
(add-to-list 'editorconfig-indentation-alist '(js-ts-mode js-indent-level)))
|
||||
(add-to-list 'editorconfig-indentation-alist '(js-ts-mode js-indent-level))
|
||||
(add-to-list 'editorconfig-indentation-alist '(plantuml-mode plantuml-indent-level)))
|
||||
|
||||
|
||||
(provide 'init-editorconfig)
|
||||
@@ -22,6 +22,7 @@
|
||||
(latex . t)
|
||||
(shell . t)
|
||||
(python . t)
|
||||
(plantuml . t)
|
||||
(emacs-lisp . t))
|
||||
"Enabled lang in org src code block.")
|
||||
|
||||
@@ -79,5 +80,8 @@
|
||||
(setq org-export-preserve-breaks t)
|
||||
(require 'ox-hugo))
|
||||
|
||||
(with-eval-after-load 'ob-plantuml
|
||||
(setq org-plantuml-exec-mode 'plantuml))
|
||||
|
||||
|
||||
(provide 'init-org)
|
||||
@@ -0,0 +1,28 @@
|
||||
;; -*- coding: utf-8; lexical-binding: t; -*-
|
||||
|
||||
(autoload 'plantuml-mode "plantuml-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.\\(plantuml\\|pum\\|plu\\)\\'" . plantuml-mode))
|
||||
|
||||
(defun plantuml-completion-at-point ()
|
||||
"Function used for `completion-at-point-functions' in `plantuml-mode'.
|
||||
Copy from https://github.com/skuro/plantuml-mode/issues/98."
|
||||
(let ((completion-ignore-case t)
|
||||
(bounds (bounds-of-thing-at-point 'symbol))
|
||||
(keywords plantuml-kwdList))
|
||||
(when (and bounds keywords)
|
||||
(list (car bounds)
|
||||
(cdr bounds)
|
||||
keywords
|
||||
:exclusive 'no
|
||||
:company-docsig #'indentity))))
|
||||
|
||||
(with-eval-after-load 'plantuml-mode
|
||||
(setq plantuml-exec-mode 'executable
|
||||
plantuml-default-exec-mode 'executable)
|
||||
(add-hook 'plantuml-mode-hook
|
||||
(lambda ()
|
||||
(add-hook 'completion-at-point-functions
|
||||
#'plantuml-completion-at-point nil 'local))))
|
||||
|
||||
|
||||
(provide 'init-plantuml)
|
||||
Submodule
+1
Submodule site-lisp/plantuml-mode added at ea45a13707.
Reference in new issue
Block a user