<commit_before>;; Modeline --- Creates custom modeline
;;; Commentary:
;;; Code:

(setq-default mode-line-format
      (list
       ""

       
       ;; == Buffer coding system ==
       'mode-line-mule-info

       ;; == Buffer modified? ==
       'mode-line-modified

       "  "
       ;; == Buffer name ==
       ;; gray & bold as set by font mode-line-buffer-id
       '(:eval (propertize " %b " 'face `(:weight bold)
                           'help-echo (buffer-file-name)))

       ;; == Current Major Mode ==
       '(:eval (propertize " %m " 'face 'font-lock-string-face
                           'help-echo buffer-file-coding-system))


       ;; == Line numbers ==
       ;; grey & normal as set by font mode-line
       ;; '%03' to set to 3 chars at least; prevents flickering
       "L:"
      
       '(:eval (propertize "%03l" 'face `(:height 1.0)))

       "/"

       ;; Print total number of lines in the buffer
       ;; (Can be slow for buffers with large number of lines eg. org files)
       '(:eval (format "%s"(line-number-at-pos (point-max))))

       ;; Faster option could be to use total-lines.el
       ; the below will look like e.g. "263/947,10  26%"
       ;; '(:eval ((12 "%l" "/" (:eval (format "%d,%d" total-lines (1+ (current-column)))))
       ;;          (-3 "%p"))))

       ;; == Column numbers ==
       "  C:"

       '(:eval (propertize "%03c" 'face `(:height 1.0)))
       
       "  "
       
       ;; ;; == Buffer scroll (%) position ==
       ;; (propertize "%06p" 'face 'font-lock-constant-face) ;; % above top

       ;; " "

       ;; == Insert or Overwrite mode ==
       ;; , input-method in a tooltip
       ;; '(:eval (propertize (if overwrite-mode "Ovr" "Ins")
       ;;                     'face 'font-lock-preprocessor-face
       ;;                     'help-echo (concat "Buffer is in "
       ;;                                        (if overwrite-mode "overwrite" "insert") " mode")))
       ;; " "
       
       ;; == Git branch status ==
       ;; Simple
       '(vc-mode vc-mode)
	     "  "
       

       ;; ERC
	     'mode-line-misc-info
       
       ;; == Window ==
       ;; '(:eval (window-parameter (selected-window) 'ace-window-path))

       ;; == Org-timer-set-timer ==
       '(:eval (propertize "  %M  " 'face 'font-lock-type-face))

       " "
       ;; == Date & Time ==
       ;; Simple date (day-month), time (24hr)
       ;; '(:eval (propertize (format-time-string "%d-%b %H:%M")))

       ;; Date, clock icon with correct hour hand, time in 24hr format
       '(:eval (let* ((hour (string-to-number (format-time-string "%I")))
                      (icon (all-the-icons-wicon (format "time-%s" hour) :height 1.3 :v-adjust 0.0)))
                 (concat
                  (propertize (format-time-string " %d-%b "))
                  (propertize (format "%s" icon)
                              'face `(:height 1.0 :family ,(all-the-icons-wicon-family))
                              'display '(raise -0.0))
                  (propertize (format-time-string " %H:%M ")
                              'face `(:height 1.0)))))
       
       ))
;;; 101-modeline ends here<commit_msg>Modeline-Date & Time-Remove icons & replace with text only<commit_after>;; Modeline --- Creates custom modeline
;;; Commentary:
;;; Code:

(setq-default mode-line-format
      (list
       ""

       
       ;; == Buffer coding system ==
       'mode-line-mule-info

       ;; == Buffer modified? ==
       'mode-line-modified

       "  "
       ;; == Buffer name ==
       ;; gray & bold as set by font mode-line-buffer-id
       '(:eval (propertize " %b " 'face `(:weight bold)
                           'help-echo (buffer-file-name)))

       ;; == Current Major Mode ==
       '(:eval (propertize " %m " 'face 'font-lock-string-face
                           'help-echo buffer-file-coding-system))


       ;; == Line numbers ==
       ;; grey & normal as set by font mode-line
       ;; '%03' to set to 3 chars at least; prevents flickering
       "L:"
      
       '(:eval (propertize "%03l" 'face `(:height 1.0)))

       "/"

       ;; Print total number of lines in the buffer
       ;; (Can be slow for buffers with large number of lines eg. org files)
       '(:eval (format "%s"(line-number-at-pos (point-max))))

       ;; Faster option could be to use total-lines.el
       ; the below will look like e.g. "263/947,10  26%"
       ;; '(:eval ((12 "%l" "/" (:eval (format "%d,%d" total-lines (1+ (current-column)))))
       ;;          (-3 "%p"))))

       ;; == Column numbers ==
       "  C:"

       '(:eval (propertize "%03c" 'face `(:height 1.0)))
       
       "  "
       
       ;; ;; == Buffer scroll (%) position ==
       ;; (propertize "%06p" 'face 'font-lock-constant-face) ;; % above top

       ;; " "

       ;; == Insert or Overwrite mode ==
       ;; , input-method in a tooltip
       ;; '(:eval (propertize (if overwrite-mode "Ovr" "Ins")
       ;;                     'face 'font-lock-preprocessor-face
       ;;                     'help-echo (concat "Buffer is in "
       ;;                                        (if overwrite-mode "overwrite" "insert") " mode")))
       ;; " "
       
       ;; == Git branch status ==
       ;; Simple
       '(vc-mode vc-mode)
	     "  "
       

       ;; ERC
	     'mode-line-misc-info
       
       ;; == Window ==
       ;; '(:eval (window-parameter (selected-window) 'ace-window-path))

       ;; == Org-timer-set-timer ==
       '(:eval (propertize "  %M  " 'face 'font-lock-type-face))

       " "
       ;; == Date (day-month) & Time (24hr)==
       '(:eval (propertize (format-time-string "%d-%b  %H:%M")))
       ))
;;; 101-modeline ends here
{'fraction_non_alphanumeric': 0.1704366123093109, 'fraction_numerical': 0.013326319480974926, 'mean_word_length': 1.588021778584392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1034558', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1710, 'n_words': 448}