I installed doom-emacs and modeline displayed as
How could place the time 10:55 AM
in the beginning, since if more windows opened and arranged horizontally, the directory name are so long enough to push "displayed time" out of view.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI installed doom-emacs and modeline displayed as
How could place the time 10:55 AM
in the beginning, since if more windows opened and arranged horizontally, the directory name are so long enough to push "displayed time" out of view.
You can re-define the main mode line with doom-modeline-def-modeline
.
The first argument is the mode line type, the second argument is the left-hand segment list, and the third argument is the right-hand segment list.
Shift the misc-info
entry from the right-hand segment list to the beginning of the left-hand segment list.
With the current version of the main mode line you get after this modification:
(with-eval-after-load "doom-modeline"
(doom-modeline-def-modeline 'main
'(misc-info bar workspace-name window-number modals matches buffer-info remote-host buffer-position word-count parrot selection-info)
'(objed-state persp-name battery grip irc mu4e gnus github debug lsp minor-modes input-method indent-info buffer-encoding major-mode process vcs checker)))
Tested with emacs 26.3 and doom-modeline-20200110.440
.
Disclaimer: I do not use doom-modeline
. That is just what I got in a couple of minutes. Maybe, there is another way to re-configure doom-modeline
.