Use more descriptive names
This commit is contained in:
parent
1ed603ba5d
commit
575584fdd4
@ -2010,7 +2010,7 @@ variables in order to export the =info-org-link= types in this document to
|
||||
#+name: lst:load-time-specific-source-block-evaluation
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'emacs
|
||||
(defun org-eval-infixed-blocks (infix)
|
||||
(defun org-eval-named-blocks-with-infix (infix)
|
||||
"Evaluate all source blocks having INFIX in their name."
|
||||
(when (eq major-mode 'org-mode)
|
||||
(let ((blocks
|
||||
@ -2026,12 +2026,12 @@ variables in order to export the =info-org-link= types in this document to
|
||||
(defun org-eval-emacs-lisp-setup-blocks ()
|
||||
"Evaluate all source blocks having \"emacs-lisp-setup\" in their name."
|
||||
(interactive)
|
||||
(org-eval-infixed-blocks "emacs-lisp-setup"))
|
||||
(org-eval-named-blocks-with-infix "emacs-lisp-setup"))
|
||||
|
||||
(defun org-eval-python-setup-blocks ()
|
||||
"Evaluate all source blocks having \"python-setup\" in their name."
|
||||
(interactive)
|
||||
(org-eval-infixed-blocks "python-setup"))
|
||||
(org-eval-named-blocks-with-infix "python-setup"))
|
||||
|
||||
;; Emacs looks for "Local variables:" after the last "?\n?\f".
|
||||
(add-to-list 'safe-local-eval-forms '(org-eval-emacs-lisp-setup-blocks)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user