[Top][All Lists]

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

Re: About the activation of minor modes

From: angelomolina
Subject: Re: About the activation of minor modes
Date: Wed, 9 Mar 2022 11:24:32 +0100 (CET)

I attach one of the minor-mode file.  Would you be so kind to examine it
for improvements.  I do not think I can use (toromona-minor-mode) to
activate the mode.    

Mar 9, 2022, 00:08 by

> angelomolina--- via Users list for the GNU Emacs text editor wrote:
>>> But you decrease modularity that way.
>>> If you want both minor modes for a major mode, just stack
>>> them on top of each other when you enable them.
>> I understand your point. I can keep the various minor-modes
>> as they are. But then have a parent minor-mode that
>> activates all of them. I am putting the respective files in
>> the same directory.
> I would stack them in the hook for the major mode where they
> are intended to be used.
> E.g., if I want `auto-fill-mode' and `abbrev-mode' (minor
> modes) in `latex-mode' (major mode) I'd put it like this.
> (defun latex-mode-hook-f ()
>  (auto-fill-mode)
>  (abbrev-mode) )
> (add-hook 'latex-mode-hook #'latex-mode-hook-f)
> -- 
> underground experts united

Attachment: toromona-voyager.el
Description: Text Data

reply via email to

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