Commit ff2db02abd81
emacs.org
@@ -77,6 +77,11 @@
else. Anything that needs to be configured first should be in there, this includes the
~init.el~ and ~early-init.el~ files content.
+** Initiazing emacs
+:PROPERTIES:
+:CUSTOM_ID: h:026adaf4-267a-4f20-bea0-80a7c2290a82
+:END:
+
Starting with Emacs 27, an =early-init.el= file can be used to do early configuration
and optimization.
@@ -145,8 +150,14 @@
One thing though, I am currently not necessarily running Emacs 27, so I am going to need
to have the same configuration in ~init.el~ for a little bit of time.
+/Note: the lowest emacs version I wanna support is 26 (as of today, might evolve)/
+
#+begin_src emacs-lisp :tangle init.el
;;; -*- lexical-binding: t; -*-
+(let ((minver 26))
+ (unless (>= emacs-major-version minver)
+ (error "Your Emacs is too old -- this configuration requires v%s or higher" minver)))
+
(defconst emacs-start-time (current-time))
(when (< emacs-major-version 27)
@@ -573,10 +584,6 @@
message-log-max 16384
auto-window-vscroll nil)
-(let ((minver 25))
- (unless (>= emacs-major-version minver)
- (error "Your Emacs is too old -- this configuration requrise v%s or higher" minver)))
-
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-language-environment 'utf-8)
init.el
@@ -1,4 +1,8 @@
;;; -*- lexical-binding: t; -*-
+(let ((minver 26))
+ (unless (>= emacs-major-version minver)
+ (error "Your Emacs is too old -- this configuration requires v%s or higher" minver)))
+
(defconst emacs-start-time (current-time))
(when (< emacs-major-version 27)
@@ -26,10 +30,6 @@
message-log-max 16384
auto-window-vscroll nil)
-(let ((minver 25))
- (unless (>= emacs-major-version minver)
- (error "Your Emacs is too old -- this configuration requrise v%s or higher" minver)))
-
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-language-environment 'utf-8)