add lisp packages
This commit is contained in:
18
lisp/org-cliplink/org-cliplink-string.el
Normal file
18
lisp/org-cliplink/org-cliplink-string.el
Normal file
@@ -0,0 +1,18 @@
|
||||
(defun org-cliplink-straight-string (s)
|
||||
(when s
|
||||
(mapconcat #'identity (split-string s) " ")))
|
||||
|
||||
(defun org-cliplink-join-string (ss)
|
||||
(mapconcat #'identity ss " "))
|
||||
|
||||
(defun org-cliplink-elide-string (s max-length)
|
||||
(if max-length
|
||||
(when s
|
||||
(if (> max-length 3)
|
||||
(if (> (length s) max-length)
|
||||
(concat (substring s 0 (- max-length 3)) "...")
|
||||
s)
|
||||
"..."))
|
||||
s))
|
||||
|
||||
(provide 'org-cliplink-string)
|
||||
Reference in New Issue
Block a user