From dc9766ca37bfb90029d6c671d19b70ea2da46a07 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 23 Jul 2019 17:51:35 +0200 Subject: [PATCH] lang/org: move org version hack to init.el So that it's visible to external org tools, like org-tangle or the literate module. --- modules/lang/org/config.el | 9 --------- modules/lang/org/init.el | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 modules/lang/org/init.el diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 78306338d..e663719d3 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -892,12 +892,3 @@ compelling reason, so..." (org-clock-load)) :config (add-hook 'kill-emacs-hook #'org-clock-save))) - - -;; HACK A necessary hack because org requires a compilation step after being -;; cloned, and during that compilation a org-version.el is generated with these -;; two functions, which return the output of a 'git describe ...' call in the -;; repo's root. Of course, this command won't work in a sparse clone, and more -;; than that, initiating these compilation step is a hassle, so... -(defun org-release () "") -(defun org-git-version () "") diff --git a/modules/lang/org/init.el b/modules/lang/org/init.el new file mode 100644 index 000000000..636d73b64 --- /dev/null +++ b/modules/lang/org/init.el @@ -0,0 +1,9 @@ +;;; lang/org/init.el -*- lexical-binding: t; -*- + +;; HACK A necessary hack because org requires a compilation step after being +;; cloned, and during that compilation a org-version.el is generated with these +;; two functions, which return the output of a 'git describe ...' call in the +;; repo's root. Of course, this command won't work in a sparse clone, and more +;; than that, initiating these compilation step is a hassle, so... +(fset 'org-release #'ignore) +(fset 'org-git-version #'ignore)