mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Support right-align in mode-line
* lisp/bindings.el (mode-line-right-align-edge): New custom variable, controls where `mode-line-format-right-align' should align to. (mode-line-format-right-align): New function. If the symbol `mode-line-format-right-align' appears in `mode-line-format', then return return a padding string which aligns everything after that symbol to the right. Padding width is altered with the display property and depends on the value of `mode-line-right-align-edge'. (mode-line-format-right-align): New variable. Convenience definition for including right alignment in `mode-line-format'. * doc/lispref/modes.texi (Mode Line Variables): Document new alignment functionality and user option. (Bug#62606)
This commit is contained in:
parent
6295d7abdd
commit
c296bcc6c4
3 changed files with 80 additions and 0 deletions
|
|
@ -2275,6 +2275,16 @@ current buffer is remote.
|
|||
|
||||
@defvar mode-line-client
|
||||
This variable is used to identify @code{emacsclient} frames.
|
||||
@end defvar
|
||||
|
||||
@defvar mode-line-format-right-align
|
||||
Anything following this symbol in @code{mode-line-format} will be
|
||||
right-aligned.
|
||||
@end defvar
|
||||
|
||||
@defvar mode-line-right-align-edge
|
||||
This variable controls exactly @code{mode-line-format-right-align}
|
||||
aligns content to.
|
||||
@end defvar
|
||||
|
||||
The following three variables are used in @code{mode-line-modes}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue