From fdbe9b15818c5a45336ec513f1b6c76b357e000b Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 25 Jan 2019 23:40:18 -0500 Subject: [PATCH] [emacs] move a/byte-compiled-init below the header --- init.org | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/init.org b/init.org index 2cd7564..6877be2 100644 --- a/init.org +++ b/init.org @@ -33,6 +33,9 @@ few months, but decided to try =straight.el= which allows direct use of the various package archives. ** Installation +:PROPERTIES: +:CUSTOM_ID: installation +:END: To use this config for your Emacs, first you need to clone this repo, then tangle =init.org= into =init.el=, and optionally byte-compile @@ -46,12 +49,7 @@ cd ~/.emacs.d #+end_src Then, decide if you would like to use a byte-compiled init file, and -set the following variable accordingly: - -#+begin_src emacs-lisp -(defvar a/byte-compiled-init t - "If non-nil, byte-(re)compile init.el on successful tangles.") -#+end_src +set the [[#byte-compiled-init][a/byte-compiled-init]] variable accordingly. Now, first tangle =init.org=, and only if you chose to have a byte-compiled init, build init as well: @@ -139,6 +137,21 @@ file. :CUSTOM_ID: initial-setup :END: +** Byte-compiled init preference +:PROPERTIES: +:CUSTOM_ID: byte-compiled-init +:END: + +If you would like a byte-compiled init file, set the following +variable to ~t~, otherwise set it to ~nil~. + +#+begin_src emacs-lisp +(defvar a/byte-compiled-init t + "If non-nil, byte-(re)compile init.el on successful tangles.") +#+end_src + +You can click on [[#installation][Installation]] to jump back up there if you like :) + ** Emacs initialization I'd like to do a couple of measurements of Emacs' startup time. First, -- 2.20.1