Add constant for path shortening
This commit is contained in:
		
							parent
							
								
									dab66a1c92
								
							
						
					
					
						commit
						c40d13a0fd
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user