Browse Source

Graphviz and org-babel integration fixes

master
Juan Placencia 4 years ago
parent
commit
e88ef5ccf8
2 changed files with 16 additions and 0 deletions
  1. +6
    -0
      uno/modules/doc/org.org
  2. +10
    -0
      uno/modules/lang/graphviz.org

+ 6
- 0
uno/modules/doc/org.org View File

@ -24,11 +24,13 @@ Define Org document package.
(org-hide-emphasis-markers t)
(org-src-window-setup 'current-window)
:hook
(org-babel-after-execute . uno/doc/org/after-execute-inline-images)
(org-mode . toggle-truncate-lines)
(org-mode . uno/doc/org/theme)
:general
(uno-mode-leader-define
:keymaps 'org-mode-map
uno-mode-leader-key '(org-ctrl-c-ctrl-c :which-key "C-c C-c")
"i" '(:ignore t :which-key "Insert")
"il" '(org-insert-link :which-key "Set link")
"it" '(org-set-tags-command :which-key "Set tags")
@ -40,6 +42,10 @@ Define Org document package.
uno-mode-leader-key '(org-edit-src-exit :which-key "Save")
"k" '(org-edit-src-abort :which-key "Cancel"))
:init
(defun uno/doc/org/after-execute-inline-images ()
"Ensure inline images remain visible after org babel execute."
(when org-inline-image-overlays
(org-redisplay-inline-images)))
(defun uno/doc/org/theme ()
"Customize face heights for org-mode."
(when (display-graphic-p)

+ 10
- 0
uno/modules/lang/graphviz.org View File

@ -33,3 +33,13 @@ Define Graphviz language package.
(graphviz-turn-on-live-preview)
(graphviz-dot-preview)))))
#+END_SRC
** Org Babel
#+BEGIN_SRC emacs-lisp
(use-package graphviz-dot-mode
:after (uno-lang-graphviz org)
:config
(org-babel-do-load-languages
'org-babel-load-languages
'((dot . t))))
#+END_SRC

Loading…
Cancel
Save