|
From: | Stefan Monnier |
Subject: | Re: [mentoring] a darkroom/writeroom mode for Emacs |
Date: | Tue, 09 Dec 2014 19:54:32 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>>> Yes, I got rid of it. You probably also need a hook when exiting. Or the >>> functions in the hook are called with different argument when entering and >>> exiting the minor-mode. >> I didn't provide the hook. There is the minor mode hook that is normally >> provided. Do you think any more are needed? > IMO: Yes. Cdlatex-org-mode is also a minor mode. So is paredit. I'm not > sure we want to use the same functions for these three projects. > E.g. visual-line-mode may be of interest to your mode, but not to paredit. > See `run-hook-with-args' and `run-hooks' and the like. I think João got it right here: define-minor-mode already defines a hook for that particular minor mode and there shouldn't be a need to define any extra one. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |