Set `lui-formatting-list'
This commit is contained in:
parent
ccff884113
commit
6bef88b512
8
init.el
8
init.el
|
@ -351,7 +351,13 @@
|
|||
lui-time-stamp-format "[ %H:%M"
|
||||
lui-track-behavior 'before-switch-to-buffer
|
||||
lui-track-indicator 'fringe
|
||||
lui-fill-remove-face-from-newline nil)
|
||||
lui-fill-remove-face-from-newline nil
|
||||
lui-formatting-list `((,(+lui-make-formatting-list-rx "*")
|
||||
1 lui-strong-face)
|
||||
(,(+lui-make-formatting-list-rx "_")
|
||||
1 lui-emphasis-face)
|
||||
(,(+lui-make-formatting-list-rx "/")
|
||||
1 lui-emphasis-face)))
|
||||
(:hook 'visual-line-mode
|
||||
'enable-lui-track
|
||||
'visual-fill-column-mode)
|
||||
|
|
|
@ -56,6 +56,13 @@ message the current topic.")
|
|||
"Return a format string for `lui-format' for metadata messages."
|
||||
(format "{nick:%1$d.%1$ds} *** %s" (- +circe-left-margin 3) string))
|
||||
|
||||
(defmacro +lui-make-formatting-list-rx (char)
|
||||
"Make a formatting regex for CHAR delimiters.
|
||||
For entry into `lui-formatting-list'."
|
||||
`(rx (or bol whitespace)
|
||||
(group ,char (+? (not (any whitespace ,char))) ,char)
|
||||
(or eol whitespace)))
|
||||
|
||||
;;; Hooks & Advice
|
||||
|
||||
(defun +circe-chat@set-prompt ()
|
||||
|
|
Loading…
Reference in New Issue