This patch allows you to specify those adjustments in your .nethackrc
and let the game take care of them for you. The line for a pre-#adjust
is of the form `PREADJUST:C-cloak' to move an object whose name
contains the string "cloak" to slot 'C';
Note that your string is checked against the internal object name
data, which doesn't include, for instance, "ring of" for rings (that
bit is added on the fly as needed).