 
 ;; code to discern whether mode line is being rendered on the active
 ;; window taken from https://emacs.stackexchange.com/a/26345
+
+;;; Code:
 
 (require 'battery)
 (require 'cl-lib)

	      '(:eval (tnml/format-string)))

(provide 'mode-line)

;;; mode-line.el ends here

		      (int-to-string (line-number-at-pos))
		      ":"
		      (int-to-string (current-column))
		      " "))
  (if (equal (selected-window) tnml-selected-window)
	  (propertize unf-str 'face '(:background "gold3"
											  :foreground "gray18"))
	(propertize unf-str 'face 'mode-line-inactive)))

(defun tnml/system-module ()
  "Return a formatted string of battery percentage and time."
  (propertize (concat " "
		      (battery-format "%p"
				      (funcall battery-status-function))
