Subject: Re: [PATCH 2/2] gnu: Add emacs-exwm.

From: "Feng Shu" <[email-masked]>
Date: Mon, 17 Apr 2017 22:41:07 +0800

Arun Isaac <[email-masked]> writes:

> +                           '(unless (featurep 'exwm)
> +                              (require 'exwm)
> +                              (require 'exwm-config)
> +                              (exwm-config-default)
> +                              (message "exwm configuration not found. Falling back to default configuration.")))))

If exwm's config put ~/.emacs,  emacs will not start properly in other
desktop environment. user should hack and let exwm's config not
enable when current wm is not exwm, I don't know how to deal with this
problem.

If possible, I suggest to do like this, user can use ~/.emacs or ~/.exwm.el
to config exwm. if one need to switch different wm frequently,
~/.exwm.el may a better solution

  (progn
    (when (file-exists-p "~/.exwm.el")
      (load "~/.exwm.el"))
    (unless (featurep 'exwm)
      (require 'exwm)
      (require 'exwm-config)
      (exwm-config-default)
      (message "exwm configuration not found. Falling back to default configuration.")))))

> +               (chmod exwm-executable #o555)
> +               #t))))))
> +    (home-page "https://github.com/ch11ng/exwm")+    (description "EXWM (Emacs X Window Manager) is a full-featured tiling X
> +window manager for Emacs built on top of XELB.")
> +    (license license:gpl3+)))

--