doom emacs org-mode 列表项目中文粗体在哪设置取消?

如图,中文用粗体太费眼力,doom-themes 配色方案全换了一遍,都是粗体。哪里可设置取消粗体,保留配色就可以了?

请教。

macos high sierra / emacs-plus 26.1

(dolist (face '(org-level-1
                org-level-2 org-level-3
                org-level-4 org-level-5
                org-level-6 org-level-7
                org-level-8))
  (set-face-attribute face nil :weight 'normal))
4 个赞

好看多了,感谢。

之前用的没问题,doom git pull一下,报错了: Error in private config: config.el, (error Invalid face org-level-1)

.doom.d/config.el 设置了如图: 07

emacs --debug-init 信息为: Debugger entered–Lisp error: (error “Invalid face” org-level-1) internal-set-lisp-face-attribute(org-level-1 :weight normal 0) set-face-attribute(org-level-1 nil :weight normal) (let ((face (car --dolist-tail–))) (set-face-attribute face nil :weight 'normal) (setq --dolist-tail-- (cdr --dolist-tail–))) (while --dolist-tail-- (let ((face (car --dolist-tail–))) (set-face-attribute face nil :weight 'normal) (setq --dolist-tail-- (cdr --dolist-tail–)))) (let ((–dolist-tail-- '(org-level-1 org-level-2 org-level-3 org-level-4 org-level-5 org-level-6 org-level-7 org-level-8))) (while --dolist-tail-- (let ((face (car --dolist-tail–))) (set-face-attribute face nil :weight 'normal) (setq --dolist-tail-- (cdr --dolist-tail–))))) eval-buffer(#<buffer load-551168> nil “/Users/tsimaa/.doom.d/config.el” nil t) ; Reading at buffer position 1513 load-with-code-conversion(“/Users/tsimaa/.doom.d/config.el” “/Users/tsimaa/.doom.d/config.el” t nil) load(“/Users/tsimaa/.doom.d/config” t nil) (condition-case e (load (expand-file-name “config” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if noninteractive nil (maphash (function (lambda (key plist) (let ((doom–current-module key) (doom–current-flags (plist-get plist :flags))) (condition-case e (load (expand-file-name “config” (plist-get plist :path)) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” (plist-get plist :path)))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e)))))))) doom-modules) (condition-case e (load (expand-file-name “config” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if custom-file nil (setq custom-file (concat doom-local-dir “custom.el”))) (if (stringp custom-file) (progn (load custom-file t t t))) (run-hook-wrapped 'doom-post-init-hook (function doom-try-run-hook))) (progn (setq doom-init-modules-p t) (condition-case e (load (expand-file-name “init” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “init” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if doom-modules nil (setq doom-modules (make-hash-table :test 'equal))) (maphash (function (lambda (key plist) (let ((doom–current-module key) (doom–current-flags (plist-get plist :flags))) (condition-case e (load (expand-file-name “init” (plist-get plist :path)) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “init” (plist-get plist :path)))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e)))))))) doom-modules) (run-hook-wrapped 'doom-init-hook (function doom-try-run-hook)) (if noninteractive nil (maphash (function (lambda (key plist) (let ((doom–current-module key) (doom–current-flags (plist-get plist :flags))) (condition-case e (load (expand-file-name “config” (plist-get plist :path)) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” (plist-get plist :path)))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e)))))))) doom-modules) (condition-case e (load (expand-file-name “config” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if custom-file nil (setq custom-file (concat doom-local-dir “custom.el”))) (if (stringp custom-file) (progn (load custom-file t t t))) (run-hook-wrapped 'doom-post-init-hook (function doom-try-run-hook)))) (if (or force-p (not doom-init-modules-p)) (progn (setq doom-init-modules-p t) (condition-case e (load (expand-file-name “init” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “init” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if doom-modules nil (setq doom-modules (make-hash-table :test 'equal))) (maphash (function (lambda (key plist) (let ((doom–current-module key) (doom–current-flags (plist-get plist :flags))) (condition-case e (load (expand-file-name “init” (plist-get plist :path)) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “init” (plist-get plist :path)))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e)))))))) doom-modules) (run-hook-wrapped 'doom-init-hook (function doom-try-run-hook)) (if noninteractive nil (maphash (function (lambda (key plist) (let ((doom–current-module key) (doom–current-flags (plist-get plist :flags))) (condition-case e (load (expand-file-name “config” (plist-get plist :path)) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” (plist-get plist :path)))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e)))))))) doom-modules) (condition-case e (load (expand-file-name “config” doom-private-dir) t nil) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (let* ((source (file-name-sans-extension (expand-file-name “config” doom-private-dir))) (err (cond ((file-in-directory-p source doom-core-dir) (cons 'doom-error doom-core-dir)) ((file-in-directory-p source doom-private-dir) (cons 'doom-private-error doom-private-dir)) ((cons 'doom-module-error doom-emacs-dir))))) (signal (car err) (list (file-relative-name (concat source “.el”) (cdr err)) e))))) (if custom-file nil (setq custom-file (concat doom-local-dir “custom.el”))) (if (stringp custom-file) (progn (load custom-file t t t))) (run-hook-wrapped 'doom-post-init-hook (function doom-try-run-hook))))) doom-initialize-modules() (if noninteractive nil (doom-initialize-modules)) eval-buffer(#<buffer load-569619> nil “/Users/tsimaa/.emacs.d/core/core.el” nil t) ; Reading at buffer position 21072 load-with-code-conversion(“/Users/tsimaa/.emacs.d/core/core.el” “/Users/tsimaa/.emacs.d/core/core.el” nil t) require(core “/Users/tsimaa/.emacs.d/core/core”) eval-buffer(#<buffer load> nil “/Users/tsimaa/.emacs.d/init.el” nil t) ; Reading at buffer position 3807 load-with-code-conversion(“/Users/tsimaa/.emacs.d/init.el” “/Users/tsimaa/.emacs.d/init.el” t t) load(“/Users/tsimaa/.emacs.d/init” t t) #f(compiled-function () #<bytecode 0x400bf351>)() command-line() normal-top-level()

请教,这是哪里出问题了?

谢谢。

建议你直接给hlissner报issue,这种高度结构化的配置没有钻研过的人基本看不懂

由于doom所有东西都是lazy load的,启动doom emacs时,org还没有加载,所以没有那个变量。可以用下面的方法:

(after! org
  (dolist (face '(org-level-1
                  org-level-2 org-level-3
                  org-level-4 org-level-5
                  org-level-6 org-level-7
                  org-level-8))
    (set-face-attribute face nil :weight 'normal))
  )

2 个赞

@xhcoding

完美!

感谢大神!

请问楼主的标题格式怎样设置的?可以分享下吗? 谢谢

建议脱离主题的问题开个新帖子提问,不过还是指个路子好了😄

里面的符号可以自己换

(setq org-superstar-headline-bullets-list '("◉" "○" "◈" "◇" "▣" "□"))
1 个赞