help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Aid for dislexia


From: Michael Heerdegen
Subject: Re: Aid for dislexia
Date: Sun, 15 Jun 2014 16:58:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux)

Hi,

I think you can simply misuse `hl-line-mode' for the highlighting,
e.g. like this:

--8<---------------cut here---------------start------------->8---
(progn
  (require 'thingatpt)
  (setq-default
   hl-line-range-function
   (lambda () (bounds-of-thing-at-point 'word))
   hl-line-face 'trailing-whitespace)
  (global-hl-line-mode))
--8<---------------cut here---------------end--------------->8---


Combined with word moving commands (M-left, M-right), I think it's
already quite what you want.


Michael.




reply via email to

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