File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 140
140
; ; (@* "Util" )
141
141
; ;
142
142
143
+ (defun jcs-modeline-2str (obj )
144
+ " Convert OBJ to string."
145
+ (format " %s " obj))
146
+
143
147
; ; TODO: Use function `string-pixel-width' after 29.1
144
148
(defun jcs-modeline--string-pixel-width (str )
145
149
" Return the width of STR in pixels."
258
262
; ;
259
263
; ;; Line and Columns
260
264
265
+ (defcustom jcs-modeline-show-point nil
266
+ " If non-nil, also shows point information."
267
+ :type 'boolean
268
+ :group 'jcs-modeline )
269
+
261
270
(defun jcs-modeline--render-line-columns ()
262
271
" Render current line number and column."
263
- (moody-tab " %l : %c" 0 'up ))
272
+ (moody-tab (if jcs-modeline-show-point
273
+ (concat " %l %c" (format " (%s ) " (point )))
274
+ " %l : %c" )
275
+ 0 'up ))
264
276
265
277
; ;
266
278
; ;; Project
You can’t perform that action at this time.
0 commit comments