From 62fa7b54ac9f1817d53581c29e44e2c1f7bca689 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Mon, 22 Mar 2021 13:43:10 +0000 Subject: [PATCH] doom upgrade, and plantuml snippets, class diagram and handwritten mini snippet --- init.el | 7 ++-- .../plantuml class and package diagram | 38 +++++++++++++++++++ snippets/text-mode/plantuml handwritten | 8 ++++ 3 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 snippets/org-mode/plantuml class and package diagram create mode 100644 snippets/text-mode/plantuml handwritten diff --git a/init.el b/init.el index f7c05db..bbf6a9f 100644 --- a/init.el +++ b/init.el @@ -135,9 +135,9 @@ ;;(haskell +dante) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on - ;;json ; At least it ain't XML + json ; At least it ain't XML ;;(java +meghanada) ; the poster child for carpal tunnel syndrome - ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) + javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) ;;latex ; writing papers in Emacs has never been so fun @@ -152,7 +152,7 @@ (org +roam +download-dnd) ; organize your plain life in plain text ;;php ; perl's insecure younger brother plantuml ; diagrams for confusing people more - ;;purescript ; javascript, but functional + purescript ; javascript, but functional ;;python ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs @@ -163,6 +163,7 @@ ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;scheme ; a fully conniving family of lisps + typescript sh ; she sells {ba,z,fi}sh shells on the C xor ;;sml ;;solidity ; do you need a blockchain? No. diff --git a/snippets/org-mode/plantuml class and package diagram b/snippets/org-mode/plantuml class and package diagram new file mode 100644 index 0000000..9dca50b --- /dev/null +++ b/snippets/org-mode/plantuml class and package diagram @@ -0,0 +1,38 @@ +# -*- mode: snippet -*- +# name: plantuml class and package diagram +# key: plantuml-package +# -- +#+begin_src plantuml :file vending-domain-package.png +@startuml embedded-machine +skinparam { +handwritten true +monochrome true +} + +package $0 { +together { +class $1 { +$2($3: $4) +} +class Display { +show_message(message: str) +} +} +class Drawer { +deliver() +} +class Button { +push() +} +class CashRegister { +insert(coins: int) +checkout(price: int) +} +Button -> Drawer +Drawer --> CashRegister +Drawer --> Bin +CashRegister --> Display +Bin --> Display +} +@enduml +#+end_src diff --git a/snippets/text-mode/plantuml handwritten b/snippets/text-mode/plantuml handwritten new file mode 100644 index 0000000..8b1af28 --- /dev/null +++ b/snippets/text-mode/plantuml handwritten @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: plantuml handwritten +# key: handwritten_plantuml +# -- +skinparam { +handwritten true +monochrome true +}