diff --git a/README.org b/README.org index cb16b4f..f2041a3 100644 --- a/README.org +++ b/README.org @@ -667,6 +667,11 @@ defined in this Org file. "Face" (invert-default-face :no-manual t) (set-default-face-height :no-manual t) + "Interaction" + (enable-this-command :no-manual t) + (narrow-or-widen-dwim :no-manual t) + (org-narrow-to-table :no-manual t) + (toggle-ilog-timer-function-after :no-manual) "LaTeX" (TeX-brace-count-line-override :no-manual t) (biber-delete-cache :no-manual t) @@ -682,10 +687,7 @@ defined in this Org file. (org-eval-python-setup-blocks :no-manual t) (org-eval-infixed-blocks :no-manual t) (org-syntax-convert-keyword-case-to-lower :no-manual t) - "Wizard" - (enable-this-command :no-manual t) - (narrow-or-widen-dwim :no-manual t) - (org-narrow-to-table :no-manual t)))) + (toggle-org-babel-python-format-session-value-override :no-manual t)))) #+end_src ** [[info:info#Top][Info (info)]] @@ -772,14 +774,15 @@ users from shooting themselves in the feet. Listing (not (get-buffer-window ilog-buffer-name))) (display-buffer (get-buffer ilog-buffer-name)))) + (define-key help-map (kbd "C-l") #'interaction-log-mode)) + + (with-eval-after-load 'emacs (defun toggle-ilog-timer-function-after () "Toggle `ilog-timer-function' advice." (interactive) (toggle-advice 'ilog-timer-function :after #'ilog-ensure-ilog-buffer-window)) - (toggle-ilog-timer-function-after) - - (define-key help-map (kbd "C-l") #'interaction-log-mode)) + (toggle-ilog-timer-function-after)) #+end_src @@ -1682,6 +1685,10 @@ v org-latex-classes)}}} for an explanation of the code in listing (with-eval-after-load 'sly (custom-set-variables '(org-babel-lisp-eval-fn #'sly-eval)))) + + (with-eval-after-load 'ob-python + (custom-set-variables + '(org-babel-python-command "python3 -E"))) #+end_src #+caption[Customize =ob-python=]: @@ -1689,9 +1696,6 @@ v org-latex-classes)}}} for an explanation of the code in listing #+name: lst:customize-ob-python #+begin_src emacs-lisp (with-eval-after-load 'ob-python - (custom-set-variables - '(org-babel-python-command "python -E")) - (defun org-babel-python-format-session-value-override (src-file result-file result-params) "Return Python code to evaluate SRC-FILE and write result to RESULT-FILE. @@ -1720,8 +1724,9 @@ v org-latex-classes)}}} for an explanation of the code in listing __org_babel_python_final = None" (org-babel-process-file-name src-file 'noquote) (org-babel-process-file-name result-file 'noquote) - (if (member "pp" result-params) "True" "False"))) + (if (member "pp" result-params) "True" "False")))) + (with-eval-after-load 'emacs (defun toggle-org-babel-python-format-session-value-override () "Toggle `org-babel-python-format-session-value' advice." (interactive)