[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling a mode based on the size of a buffer?
From: |
Michael Heerdegen |
Subject: |
Re: Disabling a mode based on the size of a buffer? |
Date: |
Tue, 20 Aug 2013 23:44:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Tim Visher <tim.visher@gmail.com> writes:
> Hi All,
>
> When a buffer gets to a certain size, paredit mode specifically begins
> to struggle, as do some other modes.
I don't see that for paredit. In a buffer with >10000 lines, any
paredit command is still executed without measurable delay. In which
way does it struggle for you? What are these other modes?
> I'm basically wondering if there are predefined hooks with which I can
> make a decision to disable said modes if a buffer has reached a
> certain size limit.
No, not that I knew. You could use a timer to observe the buffer size.
Michael.