From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to show all characters in a specific line
Date: Wed, 31 Dec 2014 20:46:22 -0500 [thread overview]
Message-ID: <87wq571de9.fsf@reader.local.lan> (raw)
In-Reply-To: e9f2b73f-1e85-4fc4-9c04-262cb420a162@default
Drew Adams <drew.adams@oracle.com> writes:
>> In vi/vim on any line and in Command mode if you press :l <RET> you
>> will see any \t, newline and etc.
>
> If you are talking only about whitespace chars then you can use
> `whitespace-mode' to show them highlighted in various ways or
> contexts. See the Emacs manual, node `Useless Whitespace' for more
> information.
>
> You can also use library `highlight-chars.el' to do this. It lets you
> highlight any characters pretty much any way you like. It is available
> from MELPA or Emacs Wiki (the wiki is down at the moment, however).
Thanks for the good useful input.
`whitespace-mode' seems to do all I wanted and compared to
`highlight-chars', it is much more readable since it doesn't just put a
fairly opaque blob of color where a tab is used.
(I realize the face is customizable... but by default its fairly blotto
looking to read)
`whitespace-mode' puts an icon of sorts: >> but smaller, for tab and
. for space. All on a background color of a medium dark grey.
Mush easier on the eyes and easier to ascertain immediately what has
been put down.
But still (And no religious scrap intended) neither of those is really
as readable and handy as vim's :l Which puts only an icon in the
place of \t (^I). It collapses the whitespace and puts a series of ^I
for however many \t were used.
I don't think a snippet of whitespace-mode or hightlight-chars will
survive mail incoding without creating some kind of image of it, but
the vim look is just common keyboard characters with no higlight:
This:
rsync_short_args -avlR
rsync_long_args --stats --delete --numeric-ids --delete-excluded
Becomes:
rsync_short_args^I-avlR$
rsync_long_args^I--stats^I--delete^I--numeric-ids^I--delete-excluded$
Plus by default it does not process the whole buffer. Just the current
line or more if selected.
Its just the rest of vim is not my favorite; so whitespace-mode looks
like the winner.
Thanks again
next prev parent reply other threads:[~2015-01-01 1:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-31 21:16 How to show all characters in a specific line Harry Putnam
2014-12-31 22:09 ` Drew Adams
2015-01-01 1:46 ` Harry Putnam [this message]
2015-01-01 3:17 ` Drew Adams
2015-01-04 13:19 ` Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wq571de9.fsf@reader.local.lan \
--to=reader@newsguy.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).