Compare commits
2 Commits
cc621f0e62
...
2e6497db81
Author | SHA1 | Date | |
---|---|---|---|
2e6497db81 | |||
238a4f774e |
@ -178,6 +178,7 @@ single certifcate used for local development with caddy.")
|
|||||||
"emacs-multiple-cursors"
|
"emacs-multiple-cursors"
|
||||||
"emacs-nix-mode"
|
"emacs-nix-mode"
|
||||||
"emacs-no-littering"
|
"emacs-no-littering"
|
||||||
|
"emacs-nov-el"
|
||||||
"emacs-org"
|
"emacs-org"
|
||||||
"emacs-org-contrib"
|
"emacs-org-contrib"
|
||||||
"emacs-org-download"
|
"emacs-org-download"
|
||||||
|
@ -30,4 +30,18 @@
|
|||||||
; executable (new in org 9.6)
|
; executable (new in org 9.6)
|
||||||
(org-confirm-babel-evaluate nil))
|
(org-confirm-babel-evaluate nil))
|
||||||
(when (file-exists-p config)
|
(when (file-exists-p config)
|
||||||
(org-babel-load-file config t)))
|
(when (or (not (file-exists-p el))
|
||||||
|
(time-less-p
|
||||||
|
(file-attribute-modification-time (file-attributes el))
|
||||||
|
(file-attribute-modification-time (file-attributes config))))
|
||||||
|
(org-babel-tangle-file config el)
|
||||||
|
;; Make sure that tangled file modification time is
|
||||||
|
;; updated even when `org-babel-tangle-file' does not make changes.
|
||||||
|
;; This avoids re-tangling changed FILE where the changes did
|
||||||
|
;; not affect the tangled code.
|
||||||
|
(when (file-exists-p el)
|
||||||
|
(set-file-times el))
|
||||||
|
|
||||||
|
(byte-compile-file el)
|
||||||
|
(load-file (byte-compile-dest-file el))
|
||||||
|
(message "Compiled and loaded %s" el))))
|
||||||
|
Loading…
Reference in New Issue
Block a user