Customizing nxhtml-mumamo-mode minor modes

Asked by Jimmy Yuen Ho Wong

I was just wondering if there is a way to control what minor modes are enabled when I enable one of those *-nxhtml-mumamo-modes. I don't like outline-minor-mode and hs-minor-mode startup out and taking menu bar space whenever I start an nxhtml-mumamo-mode. I never use them and they are quite limited in functionality.

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Solved by:
lborgman
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
lborgman (lennart-borgman) said :
#1

Good question. It is not the multi major modes that turns this on, but nxhtml-mode (that might be part of them). I have really forgotten about it. There must be better ways to handle what I do there.

You can of course turn them of in the relevant hooks for now.

Revision history for this message
Jimmy Yuen Ho Wong (wyuenho) said :
#2

Yes but there doesn't seem to be anyway to tell whether hs-minor-mode or outline-minor-mode is turned on. So if I deal with them in the hook then I'll be just toggling them on and off on every other file that triggers nxhtml-mode.

Revision history for this message
Jimmy Yuen Ho Wong (wyuenho) said :
#3

Yes but there doesn't seem to be anyway to tell whether hs-minor-mode or outline-minor-mode is turned on. So if I deal with them in the hook then I'll be just toggling them on and off on every other file that triggers nxhtml-mode.

Revision history for this message
Best lborgman (lennart-borgman) said :
#4

You have to use some small functions like

(defun turn-off-hs-minor-mode ()
   (when hs-minor-mode
       (hs-minor-mode -1)))

Untested code.

Revision history for this message
lborgman (lennart-borgman) said :
#5

I consider this solved by the message to Jimmy.

Revision history for this message
Jimmy Yuen Ho Wong (wyuenho) said :
#6

Thanks lborgman, that solved my question.