From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czrBO-0003KB-So for guix-patches@gnu.org; Sun, 16 Apr 2017 16:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czrBK-0007xb-WA for guix-patches@gnu.org; Sun, 16 Apr 2017 16:54:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52804) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czrBK-0007x0-My for guix-patches@gnu.org; Sun, 16 Apr 2017 16:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1czrBK-0008R3-AV for guix-patches@gnu.org; Sun, 16 Apr 2017 16:54:02 -0400 Subject: bug#26454: [PATCH 2/2] gnu: add emacs-exwm Resent-Message-ID: Message-Id: MIME-Version: 1.0 From: Arun Isaac Date: Mon, 17 Apr 2017 02:23:46 +0530 In-reply-to: <87mvbg7p78.fsf@163.com> References: <20170411225803.2420-1-tumashu@163.com> <20170411225803.2420-2-tumashu@163.com> <87inm9sdcs.fsf@gmail.com> <60b3e50e.AEEAJadpHi4AAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY7oh5@mailjet.com> <67fed3f6.1a3b.15b64e00dfd.Coremail.tumashu@163.com> <87mvbj6w72.fsf@163.com> <4d35676d.AEUAI-hEBJAAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY8M5G@mailjet.com> <87zifjm39e.fsf@163.com> <4f5081b4.AEAAJDrf7PAAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY8QX9@mailjet.com> <33802c56.135f.15b6f79595f.Coremail.tumashu@163.com> <87bmrxua4o.fsf@163.com> <87k26ldys5.fsf@163.com> <87mvbg7p78.fsf@163.com> Content-Type: text/plain Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26454@debbugs.gnu.org > + (with-output-to-file exwm-default-session > + (lambda _ > + (format #t > + "#!~a ~@ > + export DISPLAY=3D: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 ? =