rougier / nano-modeline

GNU Emacs / N Λ N O Modeline
GNU General Public License v3.0
170 stars 29 forks source link

Question: How do you recommend disabling the default modeline? #62

Open jgarte opened 11 months ago

jgarte commented 11 months ago

Hi,

How do you recommend disabling the default modeline?

image

This is what is in my config:

image

rougier commented 11 months ago

With the same hooks, you can use (setq mode-line-format nil)

jgarte commented 11 months ago

Makes sense. Thanks for sharing that knowledge. Closing this issue.

jgarte commented 11 months ago

Should this be mentioned in the README somewhere?

The reason I am suggesting this is because following the configuration recommendations in the README I ended up with two mode lines as shown above. I then went wondering how to disable the default mode line and came here.

Does using nano-modeline imply that the user will know to (setq mode-line-format nil) before enabling the package?

rougier commented 9 months ago

You're right actually, it couldm be mentioned in the README. Do you want to make a PR?

jgarte commented 9 months ago

Sure, but now this got me thinking on why it doesn't disable the default modeline when you enable the nano-modeline?

IIRC I haven't had to do this with other mode line packages. Correct me if I am wrong here.

rougier commented 9 months ago

I'm actually not sure so maybe it is safe to disable header or mode line depending on where the nano modeline is. Best would probably to have a custom settings telling nano-modeline to disable mode/header line when in use.

jgarte commented 9 months ago

Hi, thanks for the reply.

Can you elaborate on why it is not safe? I don't think I am understanding that part.

rougier commented 9 months ago

If you use nano-modeline as a replacement for the regular mode-line and if I set header-line to nil, then it might be problematic if you were using the header line. There are a few packages that use the header line for this or that (for example list packages) such that I don't know if it is safe to disable it.