[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugger entered--Lisp error: (excessive-lisp-nesting)
From: |
Platon Pronko |
Subject: |
Re: Debugger entered--Lisp error: (excessive-lisp-nesting) |
Date: |
Fri, 9 Jun 2023 14:38:03 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 |
On 2023-06-08 19:51, uzibalqa wrote:
Would you be so kind to show me how I can enable outline-minor-mode when the
user enables
tematika-minor-mode so as to avoid the infinite recursion problem ?
I also need a way to disable outline-minor-mode when tematika-minor-mode is
disabled.
Here's a way to do it using hooks:
(define-minor-mode tematika-minor-mode "activates outline-minor-mode" :lighter "
Tematika")
(defun tematika--toggle-outline-mode ()
(if tematika-minor-mode
(outline-minor-mode)
(outline-minor-mode -1)))
(add-hook 'tematika-minor-mode-hook 'tematika--toggle-outline-mode)
--
Best regards,
Platon Pronko
PGP 2A62D77A7A2CB94E