Add constant for path shortening

This commit is contained in:
Lucien Cartier-Tilet 2021-04-29 14:17:51 +02:00
parent dab66a1c92
commit c40d13a0fd
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -40,11 +40,10 @@
:prefix "eshell-info-banner-"
:link '(url-link :tag "Gitea" "https://labs.phundrak.com/phundrak/eshell-info-banner.el"))
; Structs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
(cl-defstruct eshell-info-banner--mounted-partitions
"Object representing a mounted partition found in the system."
path size used percent)
(defconst eshell-info-banner--min-length-left 8
"Minimum length of text on the left hand side of the banner.")
; Custom variables ;;;;;;;;;;;;;;;;;;;;
@ -90,6 +89,12 @@
"Face for eshell-info-banner progress bars displaying critical levels."
:group 'eshell-info-banner)
; Structs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(cl-defstruct eshell-info-banner--mounted-partitions
"Object representing a mounted partition found in the system."
path size used percent)
; Macros ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defmacro eshell-info-banner--with-face (str &rest properties)