Subject: bug#26454: [PATCH 2/2] gnu: add emacs-exwm

From: Arun Isaac <[email-masked]>
Date: Mon, 17 Apr 2017 02:23:46 +0530

> +               (with-output-to-file exwm-default-session
> +                 (lambda _
> +                   (format #t
> +                    "#!~a ~@
> +                     export DISPLAY=:0 ~@
> +                     ~a +SI:localuser:$USER ~@
> +                     exec ~a --exit-with-session ~a -q --eval \"~a\" ~%"

Can we drop the -q flag? If we use the -q flag, the user's ~/.emacs is
not loaded. That means to use their editor, they'll have to start
another emacs process leaving the first emacs process just for
exwm. This need for two emacs processes is not nice.

> +                    sh-path xhost-path dbus-launch-path emacs-path
> +                    (string-append
> +                     "(if (file-exists-p \\\"~/.exwm.el\\\")"
> +                     "(load \\\"~/.exwm.el\\\")"
> +                     "(require 'exwm)"
> +                     "(require 'exwm-config)"
> +                     "(exwm-config-default)"
> +                     "(message \\\"EXWM: ~/.exwm.el is not exist. "
> +                     "use exwm fallback configure.\\\")"
> +                     ")"))))

This eval forces the user to put all exwm specific configuration in
~/.exwm.el. Is it possible to work out some way to let the user keep all
their configuration in the usual ~/.emacs, but still have some way for
the default configuration to work out of the box without the user having
to modify their ~/.emacs ?