Skip to content

Commit

Permalink
feat: Add CSV support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 10, 2023
1 parent 9181c77 commit 0e45540
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jcs-modeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

(defcustom jcs-modeline-right
`((:eval (jcs-modeline--render-nov))
(:eval (jcs-modeline--render-csv))
(:eval (jcs-modeline--render-text-scale))
(:eval (jcs-modeline--render-flymake))
(:eval (jcs-modeline--render-flycheck))
Expand Down Expand Up @@ -459,6 +460,16 @@ If argument RUNNING is non-nil, we turn lighter into question mark."
result)
" ")))

;;
;;; CSV

(defvar csv-mode-line-format)

(defun jcs-modeline--render-csv ()
"Render for `csv-mode'."
(when (eq major-mode 'csv-mode)
(concat (format-mode-line csv-mode-line-format) " ")))

;;
;;; Nov

Expand Down

0 comments on commit 0e45540

Please sign in to comment.