(defun test-mode-line () (interactive) (setq mode-line-format (cons (propertize " " 'display (create-image "/* XPM */ static char * image[] = { \"3 60 1 1\", \"0 c #00aaff\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\", \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\" };" 'xpm t :ascent 'center)) mode-line-format)) (message "\ntest-mode-line")) (global-set-key [f1] 'test-mode-line)