-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-example.el
87 lines (75 loc) · 4.18 KB
/
custom-example.el
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;;; custom.el --- user customization file -*- no-byte-compile: t -*-
;;; Commentary:
;;; Add or change the configurations in custom.el, then restart Emacs.
;;; Put your own configurations in custom-post.el to override default configurations.
;;; Code:
;; (setq centaur-logo nil) ; Logo file or nil (official logo)
;; (setq centaur-full-name "user name") ; User full name
;; (setq centaur-mail-address "[email protected]") ; Email address
;; (setq centaur-proxy "127.0.0.1:1080") ; Network proxy
;; (setq centaur-server nil) ; Enable `server-mode' or not: t or nil
;; (setq centaur-icon nil) ; Display icons or not: t or nil
;; (setq centaur-package-archives 'emacs-china) ; Package repo: melpa, melpa-mirror, emacs-china, netease, ustc, tencent or tuna
;; (setq centaur-theme 'light) ; Color theme: auto, random, default, classic, colorful, dark, light, day or night
;; (setq centaur-dashboard nil) ; Use dashboard at startup or not: t or nil
;; (setq centaur-lsp 'eglot) ; Set LSP client: lsp-mode, eglot or nil
;; (setq centaur-lsp-format-on-save-ignore-modes '(c-mode c++-mode)) ; Ignore format on save for some languages
;; (setq centaur-chinese-calendar t) ; Use Chinese calendar or not: t or nil
;; (setq centaur-prettify-symbols-alist nil) ; Alist of symbol prettifications
;; (setq centaur-prettify-org-symbols-alist nil) ; Alist of symbol prettifications for `org-mode'
;; (setq centaur-benchmark-init t) ; Enable initialization benchmark or not: t or nil
;; For Emacs devel
;; (setq package-user-dir (locate-user-emacs-file (format "elpa-%s" emacs-major-version)))
;; (setq desktop-base-file-name (format ".emacs-%s.desktop" emacs-major-version))
;; (setq desktop-base-lock-name (format ".emacs-%s.desktop.lock" emacs-major-version))
;; Fonts
(when (display-graphic-p)
;; Set default font
(cl-loop for font in '("SF Mono" "Hack" "Source Code Pro" "Fira Code"
"Menlo" "Monaco" "DejaVu Sans Mono" "Consolas")
when (font-installed-p font)
return (set-face-attribute 'default nil
:font font
:height (cond (sys/mac-x-p 130)
(sys/win32p 110)
(t 100))))
;; Specify font for all unicode characters
(cl-loop for font in '("Symbola" "Apple Symbols" "Symbol" "icons-in-terminal")
when (font-installed-p font)
return (set-fontset-font t 'unicode font nil 'prepend))
;; Specify font for Chinese characters
(cl-loop for font in '("WenQuanYi Micro Hei" "Microsoft Yahei")
when (font-installed-p font)
return (set-fontset-font t '(#x4e00 . #x9fff) font)))
;; Mail
;; (setq message-send-mail-function 'smtpmail-send-it
;; smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
;; smtpmail-auth-credentials '(("smtp.gmail.com" 587
;; user-mail-address nil))
;; smtpmail-default-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-service 587)
;; Calendar
;; Set location , then press `S' can show the time of sunrise and sunset
;; (setq calendar-location-name "Chengdu"
;; calendar-latitude 30.67
;; calendar-longitude 104.07)
;; Misc.
;; (setq confirm-kill-emacs 'y-or-n-p)
;; Display on the specified monitor
;; (when (and (> (length (display-monitor-attributes-list)) 1)
;; (> (display-pixel-width) 1920))
;; (set-frame-parameter nil 'left 1920))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;; custom.el ends here