Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emacs.d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Liu Miao
emacs.d
Commits
f1cd91af
Commit
f1cd91af
authored
3 years ago
by
Liu Miao
Browse files
Options
Downloads
Patches
Plain Diff
move org font configurations to userconfig
parent
6bdfb831
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
init.el
+5
-0
5 additions, 0 deletions
init.el
lisp/configs.el
+0
-5
0 additions, 5 deletions
lisp/configs.el
lisp/init-org.el
+0
-18
0 additions, 18 deletions
lisp/init-org.el
lisp/templates/userconfig.template
+15
-0
15 additions, 0 deletions
lisp/templates/userconfig.template
with
20 additions
and
23 deletions
init.el
+
5
−
0
View file @
f1cd91af
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
user/userconfig-file
))
user/userconfig-file
))
(
load
user/userconfig-file
)
(
load
user/userconfig-file
)
;; Config before init
(
user/config-before-init
)
;; load `custom-file'
;; load `custom-file'
(
setq
custom-file
user/custom-file
)
(
setq
custom-file
user/custom-file
)
(
when
(
file-exists-p
custom-file
)
(
when
(
file-exists-p
custom-file
)
...
@@ -114,6 +117,8 @@
...
@@ -114,6 +117,8 @@
(
require
'init-org
)
(
require
'init-org
)
(
require
'apps
)
(
require
'apps
)
;; Configurations after init
(
user/config-after-init
)
(
provide
'init
)
(
provide
'init
)
;;; init.el ends here
;;; init.el ends here
This diff is collapsed.
Click to expand it.
lisp/configs.el
+
0
−
5
View file @
f1cd91af
...
@@ -20,11 +20,6 @@
...
@@ -20,11 +20,6 @@
:weight
normal
:weight
normal
:width
normal
))
:width
normal
))
(
defvar
user/org-default-font
'
(
"Noto Sans CJK SC"
:height
140
:weight
normal
:width
normal
))
(
defvar
user/cache-directory
(
defvar
user/cache-directory
(
expand-file-name
".cache/"
user-emacs-directory
))
(
expand-file-name
".cache/"
user-emacs-directory
))
...
...
This diff is collapsed.
Click to expand it.
lisp/init-org.el
+
0
−
18
View file @
f1cd91af
...
@@ -37,24 +37,6 @@
...
@@ -37,24 +37,6 @@
:commands
(
orgtbl-mode
)
:commands
(
orgtbl-mode
)
:init
:init
(
defvar
org-face-font
nil
)
(
defvar
org-face-font
nil
)
(
when
(
find-font
(
font-spec
:name
(
car
user/org-default-font
)))
(
let*
((
font
(
car
user/org-default-font
))
(
props
(
cdr
user/org-default-font
))
(
fontspec
(
apply
'font-spec
:name
font
props
)))
(
setq
org-face-font
fontspec
)))
(
when
(
fontp
org-face-font
)
(
with-eval-after-load
'org
(
add-hook
'org-mode-hook
(
lambda
()
(
make-face
'width-font-face
)
(
set-face-attribute
'width-font-face
nil
:family
(
font-get
org-face-font
:family
)
:height
(
font-get
org-face-font
:height
)
:width
(
font-get
org-face-font
:width
))
;; 13, 14, 16等会出现不等宽
(
setq
buffer-face-mode-face
'width-font-face
)
(
buffer-face-mode
)))))
:config
:config
(
require
'org-tempo
)
(
require
'org-tempo
)
...
...
This diff is collapsed.
Click to expand it.
lisp/templates/userconfig.template
+
15
−
0
View file @
f1cd91af
...
@@ -19,3 +19,18 @@
...
@@ -19,3 +19,18 @@
;; :width normal)
;; :width normal)
)
)
;;; Custom configures
(
defun
user/config-after-init
()
(
with-eval-after-load
'org
(
add-hook
'org-mode-hook
#'
(
lambda
()
(
make-face
'width-font-face
)
(
set-face-attribute
'width-font-face
nil
:font
"Noto Sans Mono CJK SC 14"
)
(
setq
buffer-face-mode-face
'width-font-face
)
(
buffer-face-mode
))))
;;
)
(
defun
user/config-before-init
()
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment