emacs-devel
[Top][All Lists]
Advanced

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

RE: blank-mode.el


From: Drew Adams
Subject: RE: blank-mode.el
Date: Sun, 28 Oct 2007 15:11:23 -0700

> Ok, instead of modifying blank-mode behavior passing a list,
> we could have the following commands:
>     blank-toggle
>     blank-global-toggle

`blank-toggle-global' - it's easier to see that both exist when using
completion.

> When activated interactively, it asks to user which feature to highlight
> (it could be via a menu, in a similar way that C-h behaves).  The menu
> options could be something like:
>     t - tabs
>     s - spaces and hard spaces
>     r - trailing blanks
>     b - spaces before tab
>     l - lines
>     ? - display the menu
> So, if blank-toggle is binded to a key, for example, C-c b, then the
> user could type:
>     C-c b t      toggle tabs
>     C-c b s      toggle spaces and hard spaces
>     C-c b r      toggle trailing blanks
>     C-c b b      toggle spaces before tab
>     C-c b l      toggle lines
> Or the user could type:
>     M-x blank-toggle RET t
>     M-x blank-toggle RET s
>     etc.
> And via ELisp code, it could pass a symbol like:
>     (blank-toggle 'trailing)
>     (blank-toggle 'space-before-tab)
>     etc.
> Also, via ELisp code, it could pass a list like:
>     (blank-toggle '(trailing space-before-tab))

Sounds good to me.





reply via email to

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