There have been a few forum threads here about issues with xmodmap, but not the particular issue that concerns me. Of course it isn't really specific to LMDE, but I just thought someone here might have figured it out. If so, I would be very glad of their assistance, please.
The issue is how to get xmodmap to run automatically at Xserver startup, so that my one-and-only keyboard tweak (to remap the CapsLock key) is ready and working by the time the desktop has loaded. There are numerous forum threads about this all over the Web, but most people still don't manage to get it fixed.
The usual advice is to create a file ~/.xmodmap containing the relevant commands, then put an entry in /etc/X11/xinit/xinitrc to ensure that the created file is read. But I find that this simply doesn't work. Nor does putting xmodmap, with those same commands, into the Application Autostart list. I know that the commands I'm using are correct because if I run them in a terminal they put the tweak into effect.
Until recently I was running LMDE Gnome, where there is an advanced keyboard options dialog for such tweaks. I'm now running LMDE Xfce, which sadly doesn't have that luxury. Many thanks for any kind help.