                                                 (mouse-2 . ivy-switch-buffer)
                                                 (mouse-3 . next-buffer))))))
 
-(defun custom-modeline-position-info()
+(defun custom-modeline-position-info ()
   `(" ("
     ,(propertize "%l"
                  'face 'font-lock-type-face

                                            (if overwrite-mode "overwrite" "insert")
                                            " mode")))))

(defun custom-modeline-region-info()
  (when mark-active
    (let ((chars (count-matches "."  (region-end) (region-beginning)))
          (words (count-words-region (region-end) (region-beginning)))

       (propertize (format " (%s,%s,%s)" chars words lines)
                   'face `(:height 0.9))))))

(defun custom-modeline-parinfer ()
  '(" "
    (:propertize
     (:eval (parinfer--lighter))
