1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| | #+title: A reproducible natively compiled org-mode
#+subtitle: Release {{{version}}}
#+author: The Org Mode Developers
#+language: en
* Introduction
In order to develop and test ~org-mode~ when your Emacs editor
supports native compilation, there are two things to take into
account:
1. you will need to =make native= to generate the =.eln= files. These
will be stored under the ~lisp/~ directory of your development
~org-mode~ directory.
2. Add the following code in your Emacs ~early-init.el~ file:
#+BEGIN_SRC emacs-lisp
(let ((org-devel-path (expand-file-name "<org-mode development dir>/lisp")))
(when (file-directory-p org-devel-path)
(when (native-comp-available-p)
(let ((first (pop native-comp-eln-load-path)))
;; put in second place
(add-to-list 'native-comp-eln-load-path org-devel-path t)
(add-to-list 'native-comp-eln-load-path first t)))
(add-to-list 'load-path org-devel-path)))
#+END_SRC
putting the correct path for your org-mode development directory. In
my case, it is =~/Devel/org-mode=, so the first =let= looks like this:
#+BEGIN_SRC emacs-lisp
(let ((org-devel-path (expand-file-name "~/Devel/org-mode/lisp")))
#+END_SRC
|