diff --git a/README.org b/README.org index 8029b26..b3e5c1f 100644 --- a/README.org +++ b/README.org @@ -2591,12 +2591,14 @@ Listing [[lst:configure-format-all]]: (when (fboundp 'format-all-ensure-formatter) (add-hook 'prog-mode-hook #'format-all-ensure-formatter)) - (add-hook 'org-babel-post-tangle-hook - (defun format-all-org-babel-post-tangle () - (when (derived-mode-p 'python-mode) - (setq-local format-all-formatters '(("Python" black))) - (message "Format whole `%s' buffer after tangling" major-mode) - (format-all-buffer))))) + (add-hook + 'org-babel-post-tangle-hook + (defun format-all-org-babel-post-tangle () + (when (derived-mode-p 'python-mode) + (setq-local format-all-formatters '(("Python" black))) + (format-all-buffer) + (save-buffer) + (message "Saved reformatted tangled buffer `%s'" (buffer-file-name)))))) #+end_src ** [[https://dept-info.labri.fr/~strandh/Teaching/PFS/Common/Strandh-Tutorial/Dir-symbolic.html][Common Lisp programming]]