summary refs log tree commit diff stats
path: root/lisp/+util.el
diff options
context:
space:
mode:
authorCase Duckworth2021-12-29 22:55:55 -0600
committerCase Duckworth2021-12-29 22:55:55 -0600
commit038e5de1adf2de6cdf28a428a44b0753813b928c (patch)
treebeb71cc3157ac2af3dc586fc02b74b906605e338 /lisp/+util.el
parentRe-install (new and improved!) filldent.el (diff)
downloademacs-038e5de1adf2de6cdf28a428a44b0753813b928c.tar.gz
emacs-038e5de1adf2de6cdf28a428a44b0753813b928c.zip
Lots and lots of changes, oh jeez
Diffstat (limited to 'lisp/+util.el')
-rw-r--r--lisp/+util.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/+util.el b/lisp/+util.el index fb77278..45d1e6d 100644 --- a/lisp/+util.el +++ b/lisp/+util.el
@@ -58,7 +58,8 @@ either side of S.
58 58
59FILL is the string to fill extra space with (default \" \"). 59FILL is the string to fill extra space with (default \" \").
60 60
61ELLIPSIS is the string to show when S is too long to fit (default \"...\"). 61ELLIPSIS is the string to show when S is too long to fit (default
62\"...\"). If nil, don't truncate the string.
62 63
63ALIGNMENT can be one of these: 64ALIGNMENT can be one of these:
64- nil: align to `+string-default-alignment' 65- nil: align to `+string-default-alignment'
@@ -73,7 +74,7 @@ ALIGNMENT can be one of these:
73 (format "%s%s%s%s%s" 74 (format "%s%s%s%s%s"
74 before 75 before
75 (if (eq alignment 'left) "" filler) 76 (if (eq alignment 'left) "" filler)
76 (+string-truncate s max-length ellipsis alignment) 77 (if ellipsis (+string-truncate s max-length ellipsis alignment) s)
77 (if (eq alignment 'right) "" filler) 78 (if (eq alignment 'right) "" filler)
78 after))) 79 after)))
79 80