【求助】关于 dashboard 分隔线不能居中

不知道,为什么,分隔线不居中 :rofl:

(use-package dashboard
  :ensure t
  ;; :disabled
  :config
  (dashboard-setup-startup-hook)
  (setq dashboard-items '(
                          (recents  . 5)
                          (bookmarks . 5)
                          (projects . 5)
                          (agenda . 5)
                          (registers . 5)
                          ))
  (setq dashboard-center-content t)
  )

dashboard-center-content是控制内容居中。

你看看自动补全里面有没有别的variable,比如dashboard-line一类的?

木有哦,我用一个新的空白配置试一下先

是不是应该把setq放到setup前面 :thinking:

看下page-break-lines-max-width这个是不是nil,不是nil的话分割线是有限长的,不会填充整个buffer

乃可能需要

(let ((table (make-char-table nil)))                   ;; make a new empty table
  (set-char-table-parent table char-width-table)       ;; make it inherit from the current char-width-table
  (set-char-table-range table page-break-lines-char 1) ;; let the width of page-break-lines-char be 1
  (setq char-width-table table))                       ;; use the new table as char-width-table

不行旳話,改下那个 page-break-lines-char

我也遇到过 gui对的 itrem 里就是这样 还没解决

如果是在terminal里,就是字符宽度计算的问题,换个字体试试。

Win10 Emacs26.3 GUI :joy:

有时间研究一下

好的,谢谢,有时间试一下

好的,谢谢,有时间试一下看看

好的,谢谢,有时间试一下 THX

不起作用 :joy: