The function user-full-name with no arguments returns the value of the variable user-full-name. This variable is initialised:
- to the value of the environment variable
NAMEif it is defined; or - to the Gecos field of the passwd entry.
Therefore, you can do one of the following:
- set the Gecos field of your passwd entry using one of the
chfnorusermodcommand;commands; - set your user name in the
NAMEenvironment variable in your shell's initialisation file; - set the
user-full-namevariable in your Emacs' initialisation file.