Skip to content

Commit 5886285

Browse files
committed
feat: update hlem font
1 parent ba9df44 commit 5886285

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed

config/init-font.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
((eq system-type 'gnu/linux) '("Cascadia Code" "WenQuanYi Zen Hei"))
1515
((eq system-type 'windows-nt) '("Cascadia Code" "Microsoft Yahei"))))
1616
(set-face-attribute 'default nil :font
17-
(format "%s:pixelsize=%d" (car fonts) 24))
17+
(format "%s:pixelsize=%d" (car fonts) 12))
1818
(dolist (charset '(kana han symbol cjk-misc bopomofo))
1919
(set-fontset-font (frame-parameter nil 'font) charset
2020
(font-spec :family (car (cdr fonts)))))
@@ -23,8 +23,8 @@
2323
(setq face-font-rescale-alist '(("Microsoft Yahei" . 1.2) ("WenQuanYi Micro Hei Mono" . 1.2) ("STHeiti". 1.2)))
2424

2525
(with-eval-after-load 'doom-modeline
26-
(set-face-attribute 'mode-line nil :font "Cascadia Code 9")
27-
(set-face-attribute 'mode-line-inactive nil :font "Cascadia Code 9")))
26+
(set-face-attribute 'mode-line nil :font "Cascadia Code 12")
27+
(set-face-attribute 'mode-line-inactive nil :font "Cascadia Code 12")))
2828

2929
(when (display-graphic-p)
3030
(set-graphic-font))

config/init-helm.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
("C-i" . 'helm-execute-persistent-action) ; make TAB work in terminal
1919
("C-z" . 'helm-select-action)) ; list actions using C-z
2020
:config
21-
(require 'helm-config)
21+
;; (require 'helm-config)
2222
(helm-gtags-mode t)
2323
(setq helm-split-window-in-side-p t ; open helm buffer inside current window, not occupy whole other window
2424
helm-move-to-line-cycle-in-source t ; move to end or beginning of source when reaching top or bottom of source.

config/init-org.el

+31-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
;; use org
22
(require 'org)
33

4-
;; set agenda config
5-
(setq org-agenda-files '("~/icloud/Documents/belog/"))
6-
(global-set-key (kbd "C-c a") 'org-agenda)
7-
84
;; org capture
95
(setq org-capture-templates
106
'(("i" "Private Agenda" entry (file+headline "~/icloud/Documents/belog/private.org" "Private")
117
"* TODO %?\n %i\n"
128
:empty-lines 1)
13-
("w" "Work Agenda" entry (file+headline "~/icloud/Documents/belog/Shushan.org" "Work")
9+
("w" "Work Agenda" entry (file+headline "~/icloud/Documents/belog/Brothers.org" "Work")
1410
"* TODO %?\n %i\n"
1511
:empty-lines 1)))
1612

1713
(global-set-key (kbd "C-c c") 'org-capture)
14+
(add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))
1815

1916
(defun org-insert-src-block (src-code-type)
2017
"Insert a `SRC-CODE-TYPE' type source code block in org-mode."
@@ -40,8 +37,37 @@
4037

4138
(add-hook 'org-mode-hook 'my-org-mode-setup t)
4239

40+
;; set agenda config
41+
(setq org-agenda-files '("~/icloud/Documents/belog/"))
42+
(global-set-key (kbd "C-c a") 'org-agenda)
43+
4344
(global-set-key (kbd "C-c C-a r") 'org-agenda-to-appt)
4445

46+
(setq org-agenda-custom-commands
47+
'(("g" . "GTD contexts")
48+
("go" "Office" tags-todo "office")
49+
("gc" "Computer" tags-todo "computer")
50+
("gp" "Phone" tags-todo "phone")
51+
("gh" "Home" tags-todo "home")
52+
("ge" "Errands" tags-todo "errands")
53+
("G" "GTD Block Agenda"
54+
((tags-todo "office")
55+
(tags-todo "computer")
56+
(tags-todo "phone")
57+
(tags-todo "home")
58+
(tags-todo "errands"))
59+
nil ;; i.e., no local settings
60+
("~/next-actions.html")) ;; exports block to this file with C-c a e
61+
;; ..other commands here
62+
("d" "Weekly Review"
63+
((agenda "" (;; (org-agenda-overriding-header "Tasks Completed:")
64+
(org-agenda-skip-function '(org-agenda-skip-subtree-if 'nottodo 'done))
65+
(org-agenda-skip-scheduled-if-done nil)
66+
(org-agenda-skip-timestamp-if-done nil)
67+
(org-agenda-span 7)
68+
(org-agenda-use-time-grid nil)
69+
(setq org-agenda-show-all-dates nil)))))))
70+
4571
;;agenda-appt
4672
(require 'appt)
4773
(appt-activate t);启用约会提醒

config/init-ui.el

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
(delete-selection-mode 1) ;启用删除选择模式
66
(desktop-save-mode -1) ;记录文件供下次打开
77
(setq-default cursor-type 'bar) ;设置光标为 |
8+
(global-display-line-numbers-mode t)
89
(fset 'yes-or-no-p 'y-or-n-p) ;以 y/n代表 yes/no
910
(blink-cursor-mode -1) ;指针不闪动
1011
(transient-mark-mode 1) ;标记高亮

config/init-vue.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
(add-hook 'css-mode-hook (lambda()
9292
(add-to-list(make-local-variable 'company-backends)
9393
'(company-css company-files company-yasnippet company-capf))))
94-
(setq css-indent-offset 2)
94+
(setq css-indent-offset 4)
9595
(setq flycheck-stylelintrc "~/.stylelintrc")
9696

9797
(add-auto-mode 'scss-mode "\\.scss\\'")

init.el

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
;; If you edit it by hand, you could mess it up, so be careful.
2323
;; Your init file should contain only one such instance.
2424
;; If there is more than one, they won't work right.
25+
'(org-agenda-files nil)
2526
'(package-selected-packages
2627
'(writeroom-mode fuo racer racer-mode bongo helm-rg helm-ag lsp-pyright py-autopep8 web-mode tide tree-sitter origami lsp-completion lsp coverlay ns-auto-titlebar fill-column-indicator json-mode typescript-mode tsx-mode blamer posframe lsp-treemacs treemacs-magit treemacs-icons-dired treemacs-tab-bar treemacs treemacs-projectile yaml-mode vue-mode company-lsp helm-lsp helm-tramp c++-mode ob-csharp ox-gfm nyan-mode eaf-browser edbi cnfonts yasnippet window-numbering which-key use-package tree-sitter-langs tree-sitter-indent rust-mode rainbow-mode rainbow-delimiters quelpa protobuf-mode olivetti mmm-mode meow mc-extras magit lsp-ui hungry-delete helm-projectile helm-gtags go-projectile flycheck exec-path-from-shell doom-themes doom-modeline dashboard csharp-mode conda company)))
2728
(custom-set-faces

0 commit comments

Comments
 (0)