me - MicroEmacs 2009 text editor
me [options] [files ...]
me [@startupFile] [-] [-a] [-b file] [-B] [-c[sessionName]] [-h] [-i] [-k[key] file] [-llineNo[:column]] [-mcommand] [-n] [-o] [-0file] [-p [-P] ] [-R] [-r] [-sstring] [-uusername] [-vvariable=string] [-V] [-x] [-y file] files...
MicroEmacs 2009 is a cut down version of the EMACS text editor, based on Danial Lawrences MicroEmacs. MicroEmacs 2009 is a tool for creating and changing documents, programs, and other text files. It is both relatively easy for the novice to use, but also very powerful in the hands of an expert. MicroEmacs 2009 can be extensively customized for the needs of the individual user.
MicroEmacs 2009 allows multiple files to be edited at the same time. The screen may be split into different windows and screens, and text may be moved freely from one window on any screen to the next. Depending on the type of file being edited, MicroEmacs 2009 can change how it behaves to make editing simple. Editing standard text files, program files and word processing documents are all possible at the same time.
There are extensive capabilities to make word processing and editing easier. These include commands for string searching and replacing, paragraph reformatting and deleting, automatic word wrapping, word move and deletes, easy case controlling, and automatic word counts.
For complex and repetitive editing tasks editing macros can be written. These macros allow the user a great degree of flexibility in determining how MicroEmacs 2009 behaves. Also, any and all the commands can be used by any key stroke by changing, or re-binding, what commands various keys invoke.
Special features are also available to perform a diverse set of operations such as file encryption, automatic backup file generation, en-tabbing and de-tabbing lines, executing operating system commands and filtering of text through other programs.
The command line options to MicroEmacs 2009 are defined as follows:-
@startFile
-
define-macro start-up find-buffer "*stdin*" beginning-of-buffer replace-string "a" "b" save-buffer quick-exit !emacro
This can be used in the following manner:
me "@testpipe.emf" < foo.a > foo.b
See -p for disabling user interaction and the help page for command ml-write(2) for a further example.
-a
Note: that NanoEmacs disables auto save mode by default and MicroEmacs enables auto save mode by default. The behavior of -a is therefore different between the two editors.
-b
-B
Note: that NanoEmacs disables backup mode by default and MicroEmacs enables backup mode by default. The behavior of -B is therefore different between the two editors.
-c[sessionName]
If the optional session name sessionName is specified then the session file sessionName.esf is loaded restoring the previous editing session including the buffer window size, position and layout, the buffer mark and cursor location, main window size. When the sessionName includes space characters then the command line option should be bracketed e.g. "-cFoo Bar". On a session restore then no additional files to load should be included on the command line as this will not enable the original window configuration to be restored as the window configuration will change. See read-session(3) for further information.
If the sessionName is omitted then the default session file username.esf is loaded (see esf(8)) restoring the previously loaded buffers however the window layout and position is not restored. The default sessionName is the login name $MENAME(5).
-h
-i
-k[key]
-llineNo[:column]
-mcommand
; launch server me & ; send message me -m "C:ME:ml-write \"Hello world\"
Note that the <command> is a MicroEmacs macro command, the escape sequences must be adhered to. The client-server interface is typically used to load a file, this may be performed as follows:-
me -m "C:myutility:find-file \"/path/foo.bar\""
The absolute path is specified in this type of transaction as the current working directory of the active MicroEmacs session is unknown. The -m option de-iconize's the existing editor session and bring it to the foreground.
-n
-o<file>
-p
-P
-R
-r
-sstring
-uusername
-vvariable=string
-V
orac% me -V
MicroEmacs 06 - Date 2006/08/10 - sunos
-x
-y
The following environment variables are used by MicroEmacs 2009.
DISPLAY
MENAME
Non-UNIX platforms usually need to explicitly set the $MENAME environment variable to identify the aforementioned files. for MS-DOS and early versions of Microsoft Windows this is typically performed in the AUTOEXEC.BAT file.
PATH
export PATH $PATH:/usr/name/me
Within MS-DOS or Microsoft Windows environments it is defined in the AUTOEXEC.BAT file. e.g.
set PATH=%PATH%;c:\me
MicroEmacs 2009 utilizes information in the $PATH environment variable to locate the start-up files, dictionaries etc.
TERM
In MS-DOS the environment variable is usually set to define the graphics adapter mode. %TERM is assigned a string, understood by the me.emf start-up file, to set the graphics mode. Predefined strings include:-
E80x50
E80x25
userDefined
MEINSTALLPATH
MEUSERPATH
MEPATH
$MEUSERPATH(5) is the preferred method used to defined the user directory.
INFOPATH
export INFOPATH /usr/local/info:$HOME/info
The default when omitted is /usr/local/info.
Within MS-DOS or Microsoft Windows environments it is defined in the AUTOEXEC.BAT file. e.g.
set MEPATH=c:\usr\local\info
There is no default location in these environments. For Microsoft Windows environments refer to me32.ini(8) for a method of setting up the $INFOPATH from the windows configuration file.
All of the macro files and dictionaries are located in the MicroEmacs home directory. The standard file extensions that are utilized are:-
.eaf
.edf
.ehf
.emf
me.emf
<platform>.emf
hkxxxxxx.emf
.erf
.etf
Microsoft Windows environments should refer to me32.ini(8) for a method of setting up the environment variables without editing the AUTOEXEC.BAT configuration file.
Drag and drop support is provided in the Windowing version of MicroEmacs. The editor window is brought into focus following the drop.
Xdnd drag and drop support is provided in the X-Windows version of MicroEmacs. The editor window is not raised or brought into focus following the drop as expected in the UNIX environment.
Reading a session is generally performed when a MicroEmacs session is started using the "-c" command line option rather than from the mode line or main menu, see read-session(3). Invoking
me -c<mySessionName>
where <mySessionName> is the name of the session (the $MENAME(5) or system login name) will restore all of of the buffers, windows layout, point and mark positions, main window size etc. at the point of the last shut down. e.g. given a system login name of jasspa then
me -cjasspa
restores the session to the state when jasspa last exited MicroEmacs. When the session name is specified then no other files should be specified, so the command line
me -cjasspa morefiles.txt
restores the buffers but does not restore the window layout because this has been destroyed by the introduction of the new file "morefiles.txt". This type of command with another file behaves as the old "me -c" command prior to the 2006 release that did not support sessions. If <mySessionName> is not specified then the buffers are restored but the window layout is not restored.
The 2006 release removed the -d command line option for debugging (not used) and added session support by extending the -c option with an optional sessionName argument.
read-session(3),
$MEINSTALLPATH(5),
$MENAME(5),
$MEPATH(5),
$MEUSERPATH(5),
emf(8),
erf(8),
esf(8),
$home(5), emacs(1) [GNU], more(1),
ne(1), vi(1).
Client-Server Interface.
Command Line Filters.
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12