emacs-devel
[Top][All Lists]
Advanced

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

Re: blank-mode.el


From: Vinicius Jose Latorre
Subject: Re: blank-mode.el
Date: Sun, 28 Oct 2007 16:35:40 -0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071009 SeaMonkey/1.1.5

Drew Adams wrote:
User option `blank-chars' specifies which blank characters to highlight, but
it would be good to also have commands to toggle each highlighting type. For
example, `M-x blank-toggle-trailing' and `M-x blank-toggle-tabs'. And it
would be good to have this for both local and global use:
`blank-toggle-tabs-global', in addition to `blank-toggle-tabs'.

Hummm, maybe a better approach could be to pass a list to blank-mode or blank-global-mode like:

; turn on local blank-mode but only highlight trailing spaces and spaces before tab
(blank-mode '(trailing space-before-tab))

So, the command above is the same as the following sequence:

(blank-mode nil)
(setq blank-chars '(trailing space-before-tab))
(blank-mode t)





reply via email to

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