stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Right-justification of mode line elements


From: Vitaly Mayatskikh
Subject: Re: [STUMP] [PATCH] Right-justification of mode line elements
Date: Sun, 13 Feb 2011 14:34:56 -0500
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO)

At Mon, 1 Nov 2010 16:12:04 +0100, Nils Anspach wrote:
 
> Hello list,
> 
> attached is a patch which allows for text elements of the mode line
> (and those of the message window, if that is required) to be
> right-justified.
> 
> For this to work you have to put a '^>' into the respective format
> command, for instance:
> 
> (setf *screen-mode-line-format* 
>       (list "[%n:%h] %v^>"
>             '(:eval (run-shell-command "echo -n `date +'%a %e-%b %R'`"
>             t))))
> 
> It also works in case of multiple lines of text. Everything after '^>' 
> up to the end of the respective line is right-justified. The next line
> then starts left-justified again.
> 
> Nils

Very handy path! Thanks, applied!
-- 
wbr, Vitaly



reply via email to

[Prev in Thread] Current Thread [Next in Thread]