emacs-devel
[Top][All Lists]
Advanced

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

Re: html, css, and js modes working together


From: Tom Tromey
Subject: Re: html, css, and js modes working together
Date: Sun, 12 Feb 2017 10:36:43 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux)

>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:

Stefan> I think what you want is to run commands in a context that depends on
Stefan> point.  In that case I think that pre-command-hook sounds like the
Stefan> better option (and no, it's definitely not particularly expensive: it's
Stefan> run less often than the cursor-sensor--detect used internally by
Stefan> cursor-sensor-mode).

Ok, thanks.  I will do that.

Stefan> As to whether cursor-sensor-functions would be more or less useful if it
Stefan> were defined to react on movement of the "buffer cursor" rather than the
Stefan> "window cursor".  You might be right.  I truly don't know.

It occurred to me just today that maybe my use of
cursor-sensor-functions would be incoherent when using multiple
terminals anyhow -- since which one would win?

Tom



reply via email to

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