Fix indentation
This commit is contained in:
parent
2aba64cf76
commit
9509458c72
18
README.org
18
README.org
@ -844,15 +844,15 @@ Stolen from [[https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/ox-extra.
|
||||
(defun my-org-eval-blocks-named (name)
|
||||
"Evaluate all source blocks named NAME."
|
||||
(when (eq major-mode 'org-mode)
|
||||
(let ((blocks
|
||||
(org-element-map
|
||||
(org-element-parse-buffer 'greater-element nil) 'src-block
|
||||
(lambda (block)
|
||||
(when (string= name (org-element-property :name block))
|
||||
block)))))
|
||||
(dolist (block blocks)
|
||||
(goto-char (org-element-property :begin block))
|
||||
(org-babel-execute-src-block)))))
|
||||
(let ((blocks
|
||||
(org-element-map
|
||||
(org-element-parse-buffer 'greater-element nil) 'src-block
|
||||
(lambda (block)
|
||||
(when (string= name (org-element-property :name block))
|
||||
block)))))
|
||||
(dolist (block blocks)
|
||||
(goto-char (org-element-property :begin block))
|
||||
(org-babel-execute-src-block)))))
|
||||
|
||||
;; Emacs looks for "Local variables:" after the last "?\n?\f".
|
||||
(add-to-list 'safe-local-eval-forms
|
||||
|
Loading…
Reference in New Issue
Block a user