diff options
| author | Marius Peter <marius.peter@tutanota.com> | 2023-12-01 16:03:25 +0100 |
|---|---|---|
| committer | Marius Peter <marius.peter@tutanota.com> | 2023-12-01 16:03:25 +0100 |
| commit | 2a8a3db92da90f7caf82285913ac384a62e11638 (patch) | |
| tree | 76b281e97ed4726e9a89669f43002ac7cea56270 | |
| parent | c224963085bb9f201282624cb53da879e4ae59ea (diff) | |
Smart compilation function.
| -rw-r--r-- | smart-documents.org | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/smart-documents.org b/smart-documents.org index 1d58598..01f2ccf 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -1812,6 +1812,24 @@ PDF. The binding is defined in Section [[Export to PDF]]. (save-buffers-kill-terminal))) #+END_SRC +** Programming + +*** Smart compilation + +#+BEGIN_SRC emacs-lisp :tangle yes + (defun sd-smart-compilation + () + "recompile if `compile-command` was modified, or prompt + for `compile-command`." + (interactive) + (if + (eq + (default-value 'compile-command) + compile-command) + (recompile) + (compile))) +#+END_SRC + * Editing preferences |