-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcentaur_custom.el
139 lines (125 loc) · 8.04 KB
/
centaur_custom.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
;;; custom.el --- user customization file -*- lexical-binding: t 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, emacs-china, netease, ustc, tencent or tuna
(setq centaur-theme 'dark) ; Color theme: auto, random, system, default, pro, dark, light, warm, cold, day or night
;; (setq centaur-completion-style 'childframe) ; Completion display style: minibuffer or childframe
;; (setq centaur-dashboard nil) ; Use dashboard at startup or not: t or nil
;; (setq centaur-restore-frame-geometry nil) ; Restore the frame's geometry at startup: 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. Nil to use font supports ligatures.
;; (setq centaur-prettify-org-symbols-alist nil) ; Alist of symbol prettifications for `org-mode'
;; 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 '("Apple Color Emoji" "Segoe UI Symbol" "Symbola" "Symbol")
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)
;; Enable proxy
;; (proxy-http-enable)
;; 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.
'(centaur-package-archives 'emacs-china)
'(centaur-theme 'default)
'(column-number-mode t)
'(custom-safe-themes
'("0466adb5554ea3055d0353d363832446cd8be7b799c39839f387abb631ea0995" "6b1abd26f3e38be1823bd151a96117b288062c6cde5253823539c6926c3bb178" "cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53" default))
'(show-paren-mode t)
'(size-indication-mode t))
(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.
'(default ((t (:family "Sarasa Term Slab SC" :foundry "????" :slant normal :weight normal :height 143 :width normal))))
'(aw-leading-char-face ((t (:inherit font-lock-keyword-face :bold t :height 2.0))))
'(aw-minibuffer-leading-char-face ((t (:inherit font-lock-keyword-face :bold t :height 1.0))))
'(aw-mode-line-face ((t (:inherit mode-line-emphasis :bold t))))
'(dashboard-heading ((t (:inherit (font-lock-string-face bold)))))
'(diff-hl-change ((t (:foreground "green" :background nil))))
'(diff-hl-delete ((t (:inherit diff-removed :background nil))))
'(diff-hl-insert ((t (:inherit diff-added :background nil))))
'(doom-modeline-buffer-file ((t (:inherit (mode-line bold)))))
'(git-timemachine-minibuffer-author-face ((t (:inherit success))))
'(git-timemachine-minibuffer-detail-face ((t (:inherit warning))))
'(ivy-minibuffer-match-face-1 ((t (:foreground "green"))))
'(lsp-headerline-breadcrumb-path-error-face ((t :underline (:style wave :color "red") :inherit lsp-headerline-breadcrumb-path-face)))
'(lsp-headerline-breadcrumb-path-hint-face ((t :underline (:style wave :color "green") :inherit lsp-headerline-breadcrumb-path-face)))
'(lsp-headerline-breadcrumb-path-info-face ((t :underline (:style wave :color "green") :inherit lsp-headerline-breadcrumb-path-face)))
'(lsp-headerline-breadcrumb-path-warning-face ((t :underline (:style wave :color "yellow") :inherit lsp-headerline-breadcrumb-path-face)))
'(lsp-headerline-breadcrumb-symbols-error-face ((t :inherit lsp-headerline-breadcrumb-symbols-face :underline (:style wave :color "red"))))
'(lsp-headerline-breadcrumb-symbols-hint-face ((t :inherit lsp-headerline-breadcrumb-symbols-face :underline (:style wave :color "green"))))
'(lsp-headerline-breadcrumb-symbols-info-face ((t :inherit lsp-headerline-breadcrumb-symbols-face :underline (:style wave :color "green"))))
'(lsp-headerline-breadcrumb-symbols-warning-face ((t :inherit lsp-headerline-breadcrumb-symbols-face :underline (:style wave :color "yellow"))))
'(lsp-ui-sideline-code-action ((t (:inherit warning))))
'(macrostep-expansion-highlight-face ((t (:inherit tooltip :extend t))))
'(pulse-highlight-face ((t (:inherit region))))
'(pulse-highlight-start-face ((t (:inherit region))))
'(symbol-overlay-default-face ((t (:inherit (region bold)))))
'(ztreep-arrow-face ((t (:inherit font-lock-comment-face))))
'(ztreep-diff-header-face ((t (:inherit (diff-header bold)))))
'(ztreep-diff-header-small-face ((t (:inherit diff-file-header))))
'(ztreep-diff-model-add-face ((t (:inherit diff-nonexistent))))
'(ztreep-diff-model-diff-face ((t (:inherit diff-removed))))
'(ztreep-diff-model-ignored-face ((t (:inherit font-lock-doc-face :strike-through t))))
'(ztreep-diff-model-normal-face ((t (:inherit font-lock-doc-face))))
'(ztreep-expand-sign-face ((t (:inherit font-lock-function-name-face))))
'(ztreep-header-face ((t (:inherit diff-header))))
'(ztreep-leaf-face ((t (:inherit diff-index))))
'(ztreep-node-face ((t (:inherit font-lock-variable-name-face)))))
(with-eval-after-load 'company-box
(add-to-list 'company-box-frame-parameters '(font . "Sarasa Term Slab SC-14")))
(with-eval-after-load 'company-box-doc
(add-to-list 'company-box-doc-frame-parameters '(font . "Sarasa Term Slab SC-14")))
(with-eval-after-load 'lsp-ui-doc
(add-to-list 'lsp-ui-doc-frame-parameters '(font . "Sarasa Term Slab SC-14")))
;;; custom.el ends here