Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgarte opened this issue Sep 24, 2023 · 8 comments
Open

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

jgarte opened this issue Sep 24, 2023 · 8 comments

Comments

@jgarte
Copy link

jgarte commented Sep 24, 2023

Hi,

How do you recommend disabling the default modeline?

image

This is what is in my config:

image

@jgarte jgarte changed the title How do you recommend disabling the default modeline? Question: How do you recommend disabling the default modeline? Sep 24, 2023
@rougier
Copy link
Owner

rougier commented Oct 13, 2023

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

@jgarte
Copy link
Author

jgarte commented Oct 14, 2023

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

@jgarte jgarte closed this as completed Oct 14, 2023
@jgarte
Copy link
Author

jgarte commented Oct 14, 2023

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
Copy link
Owner

rougier commented Nov 16, 2023

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

@jgarte
Copy link
Author

jgarte commented Nov 17, 2023

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.

@jgarte jgarte reopened this Nov 17, 2023
@rougier
Copy link
Owner

rougier commented Nov 22, 2023

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
Copy link
Author

jgarte commented Nov 22, 2023

Hi, thanks for the reply.

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

@rougier
Copy link
Owner

rougier commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants