3.3 KiB
Development
Support for individual programming languages, has a hard dependency on the Projects module for integration with LSP1 / DAP2
HTTP
Interactive with HTTP endpoints using the ob-http3 package. You can see how it works in my post Kanye as a Service. Essentialy it adds interactive HTTP blocks that can output their results in place.
(use-package ob-http :after org :config (org-babel-do-load-languages 'org-babel-load-languages '((http . t))))
YAML
Support for YAML files.
(use-package yaml-mode)
C/C++
Add support for the C/C++ family of languages via the CCLS4 language server.
-
Install requirements
-
Integrate with LSP2
-
Integrate with DAP1
-
Load babel language modules
-
Create new structure templates
-
<cc
for C -
<cpp
for C++
-
(use-package ccls :hook ((c-mode c++-mode objc-mode cuda-mode) . (lambda () (require 'ccls) (lsp-deferred))) :config (add-to-list 'org-structure-template-alist '("cc" . "src C")) (add-to-list 'org-structure-template-alist '("cpp" . "src C++")) (org-babel-do-load-languages 'org-babel-load-languages '((C . t))))
PlantUML
Download and install PlantUML5, a text-based markup language for creating UML diagrams. You can read my notes about the tool PlantUML here. Support added through the plantuml-mode6 package.
-
Install requirements
-
Load the babel module for PlantUML5
-
Create a structure template with
<pl
-
Toggle inline imagines with
SPC t i
(use-package plantuml-mode :after org :custom (plantuml-default-exec-mode 'jar) (plantuml-jar-path "~/.local/bin/plantuml.jar") (org-plantuml-jar-path (expand-file-name "~/.local/bin/plantuml.jar")) (org-startup-with-inline-images t) :config (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)) (add-to-list 'org-structure-template-alist '("pl" . "src plantuml")) (org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t))) (dotfiles/leader "ti" '(org-toggle-inline-images :which-key "Images")))