Macaulay2 » Documentation
Packages » Macaulay2Doc » setting up Macaulay2 » using Macaulay2 with Emacs » setting up the Macaulay2 Emacs interface » setupEmacs
next | previous | forward | backward | up | index | toc

# setupEmacs

- Usage:
    `setupEmacs()`
- Consequences:
  - The initialization file for Emacs (.emacs in your home directory) will have lines added to allow the Macaulay2 Emacs mode to operate. The user is prompted before the file is modified and offered the opportunity to review or reject the change.

## Description

A backup files is made carefully, and if a mangled initialization file is detected, it will not be modified. The lines added are bracketed by comment lines containing the phrases Macaulay 2 start and Macaulay 2 end.

The function setup does all this and more.

## See also

- setup

## Ways to use setupEmacs:

- `setupEmacs()`

## For the programmer

The object setupEmacs is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/setup-doc.m2:68:0.