# $user-name(5)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

$user-name - MicroEmacs user name

## SYNOPSIS

$user-name

## DESCRIPTION

$user-name is the name of the MicroEmacs user. The name is used for identifying user configuration files such as $user-name.emf and $user-name.erf, the start-up user macro file and erf(8) registry file that contains saved user preferences.

The $user-name is determined as follows, in order of precedence:

- The me(1) command line option -u username.
- The environment variable MENAME(5) (alternatively via `$LOGNAME` on Microsoft Windows platforms ONLY).
- The name determined from the system. On UNIX then the `/etc/passwd` entry is used, on MicroSoft Windows then the login name is used.
- When no other name is located then `user` is used (MS-DOS and Microsoft Windows environments running without a login mechanism).

For most conventional login systems then the correct login name is retrieved and it is not necessary to over-ride the name, unless a special configuration of MicroEmacs is being used.

## NOTES

The user should not attempt to write to $user-name, the variable should be controlled through the aforementioned techniques.

$user-name was first introduced into MicroEmacs in the 2004 release.

## SEE ALSO

me(1), $home(5), $search-path(5), $user-path(5), $MENAME(5), emf(8), erf(8).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>