branch: externals/org commit 8ef67956d44b710e9e4d0b9871367457e61a0683 Author: Rudolf Adamkovič <rud...@adamkovic.org> Commit: Ihor Radchenko <yanta...@posteo.net>
Use Graphviz Dot mode if available * etc/ORG-NEWS (Graphviz Dot mode is used if available): Announce the user-visible change, namely that Graphviz Dot mode is used when editing Dot source blocks, if available. * lisp/org-src.el (org-src-lang-modes): Default to the `graphviz-dot' mode for `dot' source blocks. If the mode is not available, Org will fall back to the `fundamental' mode automatically. Reported-by: Rudolf Adamkovič <rud...@adamkovic.org> Link: https://list.orgmode.org/m2zfikfhgp....@adamkovic.org/ --- etc/ORG-NEWS | 4 ++++ lisp/org-src.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 8dc70c6d84..4cb7561a8b 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -220,6 +220,10 @@ retail 4-4-5 calendars, etc). Org now falls back to Fundamental mode for source blocks when the appropriate major mode is unavailable. +*** Graphviz Dot mode is used if available + +When editing Dot source blocks, Org now uses Graphviz Dot mode, if installed. + ** New and changed options # Changes dealing with changing default values of customizations, diff --git a/lisp/org-src.el b/lisp/org-src.el index 3783b9fb79..6cdffc2084 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -220,7 +220,7 @@ The shells are associated with `sh-mode'." ("cpp" . c++) ("ditaa" . artist) ("desktop" . conf-desktop) - ("dot" . fundamental) + ("dot" . graphviz-dot) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script)