I haven't written a blog for a long time. Today I will try again...
The UI of Emacs is really ugly. It happened to be a pretty good UI beautification product with great care. In this era when the experts did not see and did not pay attention to such details, if you work hard, give it to us. Haha...
1. as follows
2. Specific implementation
Plug-in address: https://github.com/milkypostman/powerline
The GUI and the terminal interface have different styles. You can only customize them for sake of harmony.
; Desc: Powerline; Mode: emacs-Powerline; Link: require Powerline (defun graphic-Powerline-config () "Powerline setting for graphic" (interactive) (progn (setq Powerline-arrow-shape 'arrow') (custom-set-faces '(Mode-line (T (: foreground "white": background "# 0044cc": Box nil) '(Mode-line-inactive (T (: foreground "white": background "#262626 ": box nil) (setq powerline-color1 "# 0088cc") (setq powerline-color2 "white") (defun terminal-Powerline-config () "Powerline setting for terminal" (interactive) (setq Powerline-arrow-shape 'arrow) (setq powerline-color1 "grey22") (setq powerline-color2 "grey22 ") (custom-set-faces '(Mode-line (T (: foreground "grey44": background "grey22": Box nil )))) '(Mode-line-inactive (T (: foreground "grey22": background "grey44": Box nil ))))));; "Load the configuration according to the graphic interface"; (if (display-graphic-P); (Graphic-Powerline-config); (terminal-Powerline-config ))
I use the milkypostman/Powerline plug-in,CodeLink is found later when the address is supplemented. It seems that the ranking is higher, but it is compatible...