Backport my-modeline feature to work with smart-mode-line