diff --git a/mmm.texi b/mmm.texi index 0ad02da..c47f37d 100644 --- a/mmm.texi +++ b/mmm.texi @@ -291,25 +291,31 @@ buffer's file extension, dominant mode, or local variables. @node Installation @section Installing MMM Mode -MMM Mode has a standard installation process. See the file INSTALL for -generic information on this process. To summarize, unpack the archive, -@command{cd} to the created MMM Mode directory, type @samp{./configure}, -then @samp{make}, then @samp{make install}. If all goes correctly, this -will compile the MMM Mode elisp files, install them in your local -site-lisp directory, and install the MMM Mode info file @file{mmm.info} -in your local info directory. - -Now you need to configure your Emacs initialization file (usually -@file{~/.emacs}) to use MMM Mode. First, Emacs has to know where to -find MMM Mode. In other words, the MMM Mode directory has to be in -@code{load-path}. This can be done in the parent directory's -@file{subdirs.el} file, or in the init file with a line such as: +The recommended way to install MMM Mode is from GNU ELPA. @lisp -(add-to-list 'load-path "/path/to/site-lisp/mmm/") +(package-install 'mmm-mode) @end lisp -Once @code{load-path} is configured, MMM Mode must be loaded. You can +@noindent +You can also add the MMM Mode directory to your @code{load-path}. + +@lisp +(add-to-list 'load-path "/path/to/mmm-mode/") +@end lisp + +@noindent +The Makefile distributed with MMM Mode can be used to byte compile the +code and build the Info documentation with a simple @code{make} +command. Don't forget to add the MMM mode directory to your +@code{Info-directory-list}. + +@lisp +(add-to-list 'Info-directory-list pkg-dir) +@end lisp + +Once the package is installed or @code{load-path} configured, MMM Mode +must be loaded. You can load all of MMM Mode with the line @lisp