[emacs] add org-babel for dot
This commit is contained in:
parent
4d40dd0ae6
commit
1ddc39ef13
17
emacs/.emacs
17
emacs/.emacs
|
@ -14,6 +14,9 @@
|
|||
;; Enable word wrap
|
||||
;(setq-default word-wrap t)
|
||||
;
|
||||
;; Don't use tabs for indentation
|
||||
(setq indent-tabs-mode nil)
|
||||
;
|
||||
;; Wrap long lines
|
||||
; https://www.gnu.org/software/emacs/manual/html_node/emacs/Visual-Line-Mode.html
|
||||
; http://ergoemacs.org/emacs/emacs_long_line_wrap.html
|
||||
|
@ -126,7 +129,13 @@
|
|||
;; babel config
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((python . t)))
|
||||
'((dot . t)
|
||||
(python . t)))
|
||||
;
|
||||
;; Don't ask confirmation for code block eval of some languages
|
||||
(defun my-org-confirm-babel-evaluate (lang body)
|
||||
(not (string= lang "dot"))) ; don't ask confirmation for dot
|
||||
(setq org-confirm-babel-evaluate #'my-org-confirm-babel-evaluate)
|
||||
;
|
||||
;; Don't split line when doing M-RET at an item to make new item
|
||||
; https://irreal.org/blog/?p=6297
|
||||
|
@ -139,6 +148,12 @@
|
|||
;; Don't hide hyperlink source
|
||||
(setq org-descriptive-links nil)
|
||||
;
|
||||
;; Show images inline by default
|
||||
; https://emacs.stackexchange.com/questions/14758/in-org-mode-how-to-always-display-inline-images-at-emacs-startup
|
||||
(setq org-startup-with-inline-images t)
|
||||
; https://stackoverflow.com/questions/17621495/emacs-org-display-inline-images
|
||||
;(setq org-display-inline-images t)
|
||||
;
|
||||
;; Show all headings in an org file as folded on startup
|
||||
; Either of the following two lines seem to work
|
||||
;(setq org-set-startup-visibility 'overview)
|
||||
|
|
Loading…
Reference in New Issue
Block a user