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
nixos/exwm: allow custom Emacs load script #62104
Conversation
Add config option services.xserver.windowManager.exwm.loadScript, which is passed to Emacs (as the -l option) to load after the user's init file.
What's the use-case for this? |
It allows some Emacs init code to be conditionally run depending on whether or not Emacs is launched from the command line or as the window manager, without having to make any changes to the init file. Currently, the only conditional option is whether to enable the default config or not. I don't use the default config, so I've set the load script to just initialise exwm and the rest of the configuration is done in my init file. |
I am at the moment struggling to get a system tray running with EXWM on NixOS (any hints/alternatives appreciated). This PR would solve my problems elegantly, since the EXWM docs say, one should require the exwm-system-tray before exwm itself. I'd appreciate a merge |
I marked this as stale due to inactivity. → More info |
@Stale, I don't see a reason why this PR does not get attention. Defaults are not changed and at the moment, the system is just not flexible enough. |
@moritzschaefer Thanks for pinging this again; I'd also like a merge (I'm currently using this commit rebased on top of a local nixpkgs repo). Not sure exactly if there's anything else I need to do, or if there are any maintainers we can ping to get this looked at (I can't see any maintainers listed in the source file). |
We can try to ping @jonringer or @SuperSandro2000. |
you rang? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preserves old behavior, but allows for extensibility
cc @ryantm who is an emacs user (I'm a dirty vim plebeian)
Add config option services.xserver.windowManager.exwm.loadScript,
which is passed to Emacs (as the -l option) to load after the user's init file.
Motivation for this change
This allows me to specify that
(exwm-enable)
should be run on the exwm Emacs instance, without putting it in my general Emacs config.Things done
Tested on my NixOS box, both with default configuration (leaves everything as it currently is), and with example configuration (adding
(exwm-enable)
).sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)