Deprecate xinitrc

The example configuration should not be used directly. Instead copy the
relevant settings to your X initialization script. See #57.

* xinitrc: Print warning when used.
This commit is contained in:
Daniel Mendler 2024-06-15 09:13:52 +02:00
parent dad0668fc8
commit 41d1e6c1c3
No known key found for this signature in database
GPG key ID: D88ADB2A2693CA43
2 changed files with 11 additions and 5 deletions

View file

@ -32,11 +32,11 @@
(defun exwm-config--warn ()
"Print obsoletion warning."
(fset #'exwm-config--warn #'ignore)
(warn "The `exwm-config' file has been deprecated. We do not recommend
requiring `exwm-config' directly in your Emacs configuration. Instead
copy and modify the relevant settings to your configuration. The code
from here will be moved out of the source repository to the manual after
the next release. See https://github.com/emacs-exwm/exwm/issues/57."))
(warn "The `exwm-config' file has been deprecated. We do not recommend requiring
`exwm-config' directly in your Emacs configuration. Instead copy the relevant
settings to your configuration and modify them as needed. The code from here
will be moved out of the source repository to the manual after the next
release. See https://github.com/emacs-exwm/exwm/issues/57."))
(defun exwm-config-example ()
"Default configuration of EXWM."

View file

@ -1,3 +1,9 @@
echo "The xinitrc file has been deprecated. We do not recommend using
xinitrc directly as is. Instead copy the relevant settings to your
xsession or xinitrc file and modify them as needed. The code from here
will be moved out of the source repository to the manual after the
next release. See https://github.com/emacs-exwm/exwm/issues/57."
# Disable access control for the current user.
xhost +SI:localuser:$USER