Why does Emacs ignore my X resources (my .Xdefaults file)?
Emacs searches for X resources in the files specified by the following environment variables:
XFILESEARCHPATHXUSERFILESEARCHPATHXAPPLRESDIR
This emulates the functionality provided by programs written using the Xt toolkit.
XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names separated by colons. XAPPLRESDIR should be a list of directories separated by colons.
Emacs searches for X resources:
specified on the command line, with the ‘
-xrm RESOURCESTRING’ option,then in the value of the ‘
XENVIRONMENT’ environment variable,- or if that is unset, in the file named
~/.Xdefaults-hostnameif it exists (wherehostnameis the name of the machine Emacs is running on),
- or if that is unset, in the file named
then in the screen-specific and server-wide resource properties provided by the server,
- or if those properties are unset, in the file named
~/.Xdefaultsif it exists,
- or if those properties are unset, in the file named
then in the files listed in ‘
XUSERFILESEARCHPATH’,- or in files named
lang/Emacsin directories listed in ‘XAPPLRESDIR’ (wherelangis the value of theLANGenvironment variable), if the ‘LANG’ environment variable is set, - or in files named Emacs in the directories listed in ‘
XAPPLRESDIR’ - or in
~/lang/Emacs(if theLANGenvironment variable is set), - or in
~/Emacs,
- or in files named
then in the files listed in
XFILESEARCHPATH.