Compare commits

...

2 Commits

Author SHA1 Message Date
TEC 6fc5f042bd
Add page position to nov modeline 2024-05-07 11:05:18 +08:00
TEC 893fa421c4
Update org keyword icons for nerd-icons font 2024-05-07 11:05:18 +08:00
1 changed files with 19 additions and 13 deletions

View File

@ -5728,7 +5728,7 @@ currently playing media.
(doom-modeline-def-segment nov-author
(propertize
(cdr (assoc 'creator nov-metadata))
'face 'doom-modeline-project-parent-dir))
'face (doom-modeline-face 'doom-modeline-project-parent-dir)))
(doom-modeline-def-segment nov-title
(let ((title (or (cdr (assoc 'title nov-metadata)) "")))
(if (<= (length title) doom-modeline-nov-title-max-length)
@ -5742,12 +5742,18 @@ currently playing media.
(format " %d/%d"
(1+ nov-documents-index)
(length nov-documents))
'face 'doom-modeline-info
'face (doom-modeline-face 'doom-modeline-info)
'help-echo (if (= words 1) "1 word in this chapter"
(format "%s words in this chapter" words)))))
(doom-modeline-def-segment scroll-percentage-subtle
(concat
(doom-modeline-spc)
(propertize (format-mode-line '("" doom-modeline-percent-position "%%"))
'face (doom-modeline-face 'shadow)
'help-echo "Buffer percentage")))
(doom-modeline-def-modeline 'nov
'(workspace-name window-number nov-author nov-title nov-current-page)
'(workspace-name window-number nov-author nov-title nov-current-page scroll-percentage-subtle)
'(media-player misc-info major-mode time))
(add-to-list 'doom-modeline-mode-alist '(nov-mode . nov)))
@ -7854,36 +7860,36 @@ and Minad's lovely =org-modern= goes a long way in this regard.
("title" . "𝙏")
("subtitle" . "𝙩")
("author" . "𝘼")
("email" . #("" 0 1 (display (raise -0.14))))
("email" . "")
("date" . "𝘿")
("property" . "")
("options" . "⌥")
("property" . "󰠳")
("options" . #("󰘵" 0 1 (display (height 0.75))))
("startup" . "⏻")
("macro" . "𝓜")
("bind" . #("" 0 1 (display (raise -0.1))))
("bind" . "󰌷")
("bibliography" . "")
("print_bibliography" . #("" 0 1 (display (raise -0.1))))
("print_bibliography" . "󰌱")
("cite_export" . "⮭")
("print_glossary" . #("ᴬᶻ" 0 1 (display (raise -0.1))))
("glossary_sources" . #("" 0 1 (display (raise -0.14))))
("print_glossary" . "󰌱ᴬᶻ")
("glossary_sources" . "󰒻")
("include" . "⇤")
("setupfile" . "⇚")
("html_head" . "🅷")
("html" . "🅗")
("latex_class" . "🄻")
("latex_class_options" . #("🄻" 1 2 (display (raise -0.14))))
("latex_class_options" . "🄻󰒓")
("latex_header" . "🅻")
("latex_header_extra" . "🅻⁺")
("latex" . "🅛")
("beamer_theme" . "🄱")
("beamer_color_theme" . #("🄱" 1 2 (display (raise -0.12))))
("beamer_color_theme" . "🄱󰏘")
("beamer_font_theme" . "🄱𝐀")
("beamer_header" . "🅱")
("beamer" . "🅑")
("attr_latex" . "🄛")
("attr_html" . "🄗")
("attr_org" . "⒪")
("call" . #("" 0 1 (display (raise -0.15))))
("call" . "󰜎")
("name" . "⁍")
("header" . "")
("caption" . "☰")