diary-file-name-prefix-function

diary-file-name-prefix-function is a variable defined in `diary-lib.el'.
Its value is
identity

  • This variable may be risky if used as a file-local variable.

Documentation:
The function that will take a diary file name and return the desired prefix.

You can customize this variable.