Skip to content

My .emacs.d configration, structured as an org-mode file.

Notifications You must be signed in to change notification settings

wisdomfusion/dotemacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

Requirement

  • GNU Emacs 29.0 or later
  • macOS, *nix
  • Install sbcl and slime, before turn on slime on in init.el
(defconst *hack-slime-p* t)

Installation

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.

Customization

Fonts

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)

elpa

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/")))

How it works

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.

About

My .emacs.d configration, structured as an org-mode file.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published