From 9bd5cb2fba159e0bb74cce6589cdef390a554e89 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 7 Nov 2021 17:43:27 -0800 Subject: emacs: simplify the modeline No need for powerline, and don't need to display the time either (since it's already visible easily on both macos and linux). --- emacs/custom/fcuny-ui.el | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'emacs') diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el index 06141a0..44984e5 100644 --- a/emacs/custom/fcuny-ui.el +++ b/emacs/custom/fcuny-ui.el @@ -105,17 +105,23 @@ (when (boundp 'world-clock-timer-second) (setq world-clock-timer-second 60)) -(display-time-mode t) - -(use-package powerline - :ensure t - :config - (setq powerline-default-separator 'arrow) - (setq powerline-display-buffer-size nil) - (setq powerline-display-mule-info t) - (setq powerline-display-hud nil) - (powerline-default-theme) - (remove-hook 'after-focus-change-function 'powerline-unset-selected-window)) +;;; Mode line +(setq mode-line-percent-position '(-3 "%p")) +(setq-default mode-line-format + '("%e" + mode-line-front-space + mode-line-mule-info + mode-line-client + mode-line-modified + mode-line-remote + mode-line-frame-identification + mode-line-buffer-identification + " " + mode-line-position + mode-line-modes + " " + mode-line-misc-info + mode-line-end-spaces)) ;; Disable help mouse-overs for mode-line as they provide little to no benefits (setq mode-line-default-help-echo nil -- cgit 1.4.1