It is designed for astrophysicists and researchers that makes editing MESA input files faster, easier, and error-free.
If you’re editing MESA input files regularly, Mesa Mode saves time and helps avoid subtle mistakes. Instead of manually checking .defaults files or reformatting lines, you get:
Highlights comments, namelists, keys, booleans, and values in different colors. Helps catch errors quickly and improves file readability.
Jump to any variable's default and description with a single key. No need to manually search .defaults files.
Edit values, toggle booleans, or reset options without syntax errors. Smart commands prevent common formatting mistakes.
Automatically cleans up whitespace and aligns formatting. Keeps your inlists tidy and professional-looking.
Insert ready-to-use plot templates directly into your inlist. Pick from a list of plots without memorizing syntax.
Replace include statements with full Fortran subroutines instantly. Sets up your run_star_extras.f for quick customization.
Mesa Mode is compatible with Emacs version 25.1 or newer. Once installed and configured, it automatically activates when editing MESA files such as inlists, run_star_extras.f, or .defaults.
Mesa Mode needs to know where your MESA installation is located. You can do this in one of three ways:
Once configured, Mesa Mode provides powerful shortcuts to streamline your editing:
Mesa Mode needs to know where your MESA installation is located. You can do this in one of three ways: Automatically: Mesa Mode reads the MESA_DIR environment variable set in your system or Emacs session. Manually: You can set a specific path in your Emacs configuration using the mesa-version-mesa-dir variable.