From 08752265005b6e7d16f4550f0491794cff6c3e18 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 27 Jul 2023 01:09:21 -0700 Subject: [PATCH] Disable VC while building MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't actually need to run git for every file that is opened, and when I run with ‘guix shell --pure’ it throws errors. --- GNUmakefile | 2 +- literate-build.org | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 73fb646..94db4e6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,6 @@ build.mk: literate-build.org HOME=".emacs-local" emacs -quick -batch \ - -eval "(package-initialize)" \ + -eval "(setq vc-handled-backends nil)" \ -load ob-tangle \ -eval "(org-babel-tangle-file \"$<\"))" diff --git a/literate-build.org b/literate-build.org index 81abcd8..69967af 100644 --- a/literate-build.org +++ b/literate-build.org @@ -12,7 +12,7 @@ I specify that =build.mk= file should depend on /this/ file ({{{input-file}}}) a #+begin_src makefile-gmake :tangle GNUmakefile build.mk: literate-build.org HOME=".emacs-local" emacs -quick -batch \ - -eval "(package-initialize)" \ + -eval "(setq vc-handled-backends nil)" \ -load ob-tangle \ -eval "(org-babel-tangle-file \"$<\"))" #+end_src @@ -215,6 +215,12 @@ Use HTML5 and all its fancy elements. (setq org-html-doctype "html5") #+end_src +Disable VC. When I run this from a ~guix shell --pure~ I don't have git available and VC starts looking for it and throwing errors all over the place. + +#+begin_src emacs-lisp +(setq vc-handled-backends nil) +#+end_src + ** Projects Here come the actual projects.