Open dertuxmalwieder opened 4 years ago
You may want to check doom's config, because it seems to be setup just the way you want it:
It is, indeed! But I wonder which part is relevant.
(defvar +irc-left-padding 13
"By how much spaces the left hand side of the line should be padded.
Below a value of 12 this may result in uneven alignment between the various
types of messages.")
(use-package circe
;; ...
:config
(setq circe-format-say (format "{nick:+%ss} │ {body}" +irc-left-padding)))
Didn't test it. But this is the relevant part of the doom configuration. Change 13
to whatever you want.
I tried to adapt the (format ...)
command and it did not quite solve the issue just yet - the padding is still wrong:
(defun circe-say-formatter (&rest keywords)
"Formats in- and output on the IRC. KEYWORDS contains the nickname."
(let* ((nick (concat "[" (plist-get keywords :nick) "]"))
(len (- 2 (length nick))))
(when (> len circe-longest-nick)
(setq circe-longest-nick len)
(setq lui-fill-type (make-string (+ circe-longest-nick 3) ?\ ))
(setq wrap-prefix (make-string (+ circe-longest-nick 3) ?\ )))
(plist-put keywords :nick (s-pad-left circe-longest-nick " " nick))
(lui-format (format "{nick:+%ss} {body}" 13) keywords)))
Yet:
For anyone else stuck on this like I was just now, you might want to make sure that adaptive-wrap-prefix-mode
is not enabled for circe/lui buffers.
I’m lost, I could need help with my configuration. (I hope that this is the right place.)
Basically, what I want to achieve is a fluid with with left-padded nicknames, like this:
After reading other people's configurations and experimenting a bit, the only things I could get right were either fluid width or the nickname padding. My current
circe-config.el
looks like this:This gives me a fluid width, but the output is not quite as expected as
s-pad-left
does not seem to be used at all:I could need a pointer here. Thank you in advance.