Skip to content

Commit

Permalink
Update installation instructions in mmm.texi
Browse files Browse the repository at this point in the history
The `standard installation process' is no more.  Refer to make
instead.
  • Loading branch information
snogge committed Feb 21, 2024
1 parent dd028b4 commit 3801389
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions mmm.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3801389

Please sign in to comment.