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.
This commit is contained in:
parent
876bed4813
commit
dc9766ca37
2 changed files with 9 additions and 9 deletions
|
@ -892,12 +892,3 @@ compelling reason, so..."
|
||||||
(org-clock-load))
|
(org-clock-load))
|
||||||
:config
|
:config
|
||||||
(add-hook 'kill-emacs-hook #'org-clock-save)))
|
(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 () "")
|
|
||||||
|
|
9
modules/lang/org/init.el
Normal file
9
modules/lang/org/init.el
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue