Add constant for path shortening
This commit is contained in:
parent
dab66a1c92
commit
c40d13a0fd
@ -40,11 +40,10 @@
|
|||||||
:prefix "eshell-info-banner-"
|
:prefix "eshell-info-banner-"
|
||||||
:link '(url-link :tag "Gitea" "https://labs.phundrak.com/phundrak/eshell-info-banner.el"))
|
:link '(url-link :tag "Gitea" "https://labs.phundrak.com/phundrak/eshell-info-banner.el"))
|
||||||
|
|
||||||
; Structs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
; Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(cl-defstruct eshell-info-banner--mounted-partitions
|
(defconst eshell-info-banner--min-length-left 8
|
||||||
"Object representing a mounted partition found in the system."
|
"Minimum length of text on the left hand side of the banner.")
|
||||||
path size used percent)
|
|
||||||
|
|
||||||
; Custom variables ;;;;;;;;;;;;;;;;;;;;
|
; Custom variables ;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
@ -90,6 +89,12 @@
|
|||||||
"Face for eshell-info-banner progress bars displaying critical levels."
|
"Face for eshell-info-banner progress bars displaying critical levels."
|
||||||
:group 'eshell-info-banner)
|
: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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
; Macros ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defmacro eshell-info-banner--with-face (str &rest properties)
|
(defmacro eshell-info-banner--with-face (str &rest properties)
|
||||||
|
Loading…
Reference in New Issue
Block a user