Add tangled file
This commit is contained in:
parent
3ea9a04afb
commit
118c5a579a
10
gists/format-org-mode-source-blocks.el
Normal file
10
gists/format-org-mode-source-blocks.el
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
;; https://github.com/lassik/emacs-format-all-the-code
|
||||||
|
(use-package format-all)
|
||||||
|
|
||||||
|
(use-package org
|
||||||
|
:config
|
||||||
|
(defun my/format-all-advice ()
|
||||||
|
(ignore-errors ; in case there's no language support
|
||||||
|
(call-interactively #'format-all-buffer)))
|
||||||
|
|
||||||
|
(advice-add #'org-edit-src-exit :before #'my/format-all-advice))
|
Loading…
Reference in a new issue