My .emacs.d configration, structured as an org-mode file. You can preview the configurations on the web at config.org, cause GitHub parses org-mode files perfectly.
(defconst *hack-slime-p* t)Git clone or just download and exract files to ~/.emacs.d/ folder, and restart your Emacs.
All of the configration is written in config.org using org-babel blocks.
Because I use org-mode in my daily life, I adjust font size seperately with English and Chinese fonts, you can specify them to you own favorites.
;; fonts settings (when window-system (if *is-mac-p* (progn ; English Font (set-face-attribute 'default nil :font "Menlo 14") ; Chinese Font (dolist (charset '(kana han symbol cjk-misc bopomofo)) (set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "PingFang SC" :size 16))))) (if *is-win-p* (progn (set-face-attribute 'default nil :font "Fira Code 11") (dolist (charset '(kana han symbol cjk-misc bopomofo)) (set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "YaHei Consolas Hybrid" :size 16)))))) (setq-default line-spacing 4)My dotemacs use tsinghua.edu.cn as elpa mirror in China mainland, adjust those archives if you have faster or native ones.
(setq package-archives '(("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/") ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/") ("melpa-stable" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa-stable/") ("marmalade" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/marmalade/") ("org" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/org/")))Using org-babel, which is part of org-mode.
The code in init.el invokes org-babel function org-babel-load-file, which will generate a config.el file and executes it immediately.