From: Dave Abrahams <dave@boostpro.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Ideas for hl-line-mode
Date: Fri, 30 Sep 2011 10:17:25 -0400 [thread overview]
Message-ID: <m262kaunbe.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <838vp6ecsk.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Sep 2011 09:59:07 +0300")
on Fri Sep 30 2011, Eli Zaretskii <eliz-AT-gnu.org> wrote:
>> From: Dave Abrahams <dave@boostpro.com>
>
>> Date: Thu, 29 Sep 2011 22:40:21 -0400
>>
>> I just realized that there are a whole bunch of modes where the
>> horizontal position of the cursor just doesn't matter, and that these
>> correspond almost exactly to where I want hl-line-mode active. In these
>> modes would also want to make the cursor very close to the color of the
>> highlight. It would be nice if emacs had a way for modes to represent
>> that they're "vertical-position-only modes" so that this sort of thing
>> could be set up programmatically.
>
> Does
>
> (eq (get major-mode 'mode-class) 'special)
>
> do what you want?
Cool, I was hoping someone would point out an existing facility I didn't
know about...
Oh, interesting. It's probably a very good heuristic, though I'm not
sure the description of this mode-class as "only for specially-prepared
text" really implies that horizontal position is irrelevant.
I'll try using it and see how it goes.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
next prev parent reply other threads:[~2011-09-30 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-30 2:40 Ideas for hl-line-mode Dave Abrahams
2011-09-30 6:59 ` Eli Zaretskii
2011-09-30 14:17 ` Dave Abrahams [this message]
2011-09-30 15:01 ` Eli Zaretskii
2011-09-30 18:54 ` Rasmus Pank Roulund
2011-09-30 21:53 ` Dave Abrahams
2011-10-01 6:57 ` Eli Zaretskii
2011-10-01 17:37 ` Dave Abrahams
2011-10-01 17:58 ` Eli Zaretskii
2011-10-01 18:25 ` Dave Abrahams
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=m262kaunbe.fsf@pluto.luannocracy.com \
--to=dave@boostpro.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).