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

No code highlighting without menu-bar? #586

Closed
bbo2adwuff opened this issue Apr 28, 2022 · 6 comments
Closed

No code highlighting without menu-bar? #586

bbo2adwuff opened this issue Apr 28, 2022 · 6 comments

Comments

@bbo2adwuff
Copy link

bbo2adwuff commented Apr 28, 2022

I don't see any code highlighting when starting emacs without a menu-bar.

No code highlighting with my init file menu-bar-off:

(package-initialize)
(menu-bar-mode -1)
(require 'js2-mode)

Code highlighting works with my init file menu-bar-not-off:

(package-initialize)
(require 'js2-mode)

I'm using following emacs version:
GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-28

@UwUnyaa
Copy link

UwUnyaa commented Apr 28, 2022

Can you try with a minimal init file? I disable menu-bar as well, and never had that issue myself.

@bbo2adwuff
Copy link
Author

Oh sorry, what I meant above was that these are my init files. Hence these are minimal init files.

emacs -q -l menu-bar-off and emacs -q -l menu-bar-not-off

@bbo2adwuff
Copy link
Author

Screenshot with init file menu-bar-off

Screenshot from 2022-04-28 18-34-26

Screenshot with init file menu-bar-not-off

Screenshot from 2022-04-28 18-35-07

@UwUnyaa
Copy link

UwUnyaa commented Apr 28, 2022

How have you installed js2-mode?

@bbo2adwuff
Copy link
Author

bbo2adwuff commented Apr 28, 2022

I installed it via melpa, but as I upgraded to 28.1 I realized that it might be related to #72.

So as in #72 (comment), this did the trick:
(byte-recompile-directory (expand-file-name "~/.emacs.d/elpa/js2-mode-20220402.2211/") 0 t)

@bbo2adwuff
Copy link
Author

Just for completeness, it seems that the menu-bar-mode -1 already played a role in another issue #572.

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