From ff3227b1f917590e30ccbdcc43b53662ecf00e6f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 13 Jul 2021 19:40:34 +0200 Subject: [PATCH] Deactivate subword-mode in plantuml files plantuml-mode derives from prog-mode, which in my coniguration automatically activates subword-mode. However, as plantuml uses barewords as strings, those are rarely meant to be in camel-case (indeed, typos are much more common) and subword-mode is more distracting than helpful. --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index e378ecf..1def795 100644 --- a/init.el +++ b/init.el @@ -3006,7 +3006,11 @@ With given ARG, display files in `db/important-document-path’." :init (setq plantuml-output-type "png" plantuml-default-exec-mode 'jar plantuml-jar-path "/usr/share/plantuml/plantuml.jar" - plantuml-indent-level 2)) + plantuml-indent-level 2) + :config (progn + (add-hook 'plantuml-mode-hook + #'(lambda () + (subword-mode -1))))) (use-package pdf-occur :commands (pdf-occur-global-minor-mode))