diff options
author | Grant Shoshin Shangreaux <shoshin@cicadas.surf> | 2022-10-17 10:44:28 -0500 |
---|---|---|
committer | Grant Shoshin Shangreaux <shoshin@cicadas.surf> | 2022-10-17 10:49:09 -0500 |
commit | 9e114fcfe9e3f34a7e5ad905852c22cf0b283292 (patch) | |
tree | 5639c6ac70ce3aa0a9ba821c28cbe5ebc984f72c | |
parent | dab3e02b824d0266d038112e45f1c6502b27cb07 (diff) |
Add: plantuml config
-rw-r--r-- | shoshimacs.el | 14 | ||||
-rw-r--r-- | shoshimacs.org | 19 |
2 files changed, 31 insertions, 2 deletions
diff --git a/shoshimacs.el b/shoshimacs.el index f6c50f6..25d8532 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -158,7 +158,8 @@ (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) - (shell . t))) + (shell . t) + (plantuml . t))) (package-install 'org-tree-slide) @@ -196,6 +197,17 @@ (define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error) (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)) +(defvar plantuml-mode-repo "https://github.com/skuro/plantuml-mode") +(defvar plantuml-mode-src-dir "~/src/plantuml-mode") + +(unless (file-directory-p plantuml-mode-src-dir) + (shell-command + (format "git clone %s %s" plantuml-mode-repo plantuml-mode-src-dir))) + +(add-to-list 'load-path plantuml-mode-src-dir) +(require 'plantuml-mode) +(customize-set-value 'plantuml-default-exec-mode 'executable) + ;;; Projects (fset 'project-prefix-map project-prefix-map) diff --git a/shoshimacs.org b/shoshimacs.org index 89394da..ce54658 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -581,6 +581,7 @@ which has a command to show prefix key continuations. :header-args:emacs-lisp: :noweb-ref editing :noweb-sep "\n\n" :results silent :END: ** [[info:emacs#Matching][electric pair mode]] + I've been using smartparens -> (bookmark-jump "smartparens package") in my main config. electric pair mode does some of what smartparens does out of the box. what i'm missing is the generalized ~sp-hybrid-slurp~ or @@ -632,7 +633,8 @@ this seems to be required to fontify source blocks (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) - (shell . t))) + (shell . t) + (plantuml . t))) #+end_src *** org-tree-slide @@ -749,6 +751,21 @@ elpa. however, at the moment i must install from source: (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)) #+end_src +** PlantUML + +#+begin_src emacs-lisp + (defvar plantuml-mode-repo "https://github.com/skuro/plantuml-mode") + (defvar plantuml-mode-src-dir "~/src/plantuml-mode") + + (unless (file-directory-p plantuml-mode-src-dir) + (shell-command + (format "git clone %s %s" plantuml-mode-repo plantuml-mode-src-dir))) + + (add-to-list 'load-path plantuml-mode-src-dir) + (require 'plantuml-mode) + (customize-set-value 'plantuml-default-exec-mode 'executable) +#+end_src + * Projects :PROPERTIES: :header-args:emacs-lisp: :noweb-ref projects :noweb-sep "\n\n" :results silent |