Hi all,
I realized something that I think others might find useful.
If you are using
VSCode, and perhaps using the
Macaulay2 extension by correysharris, hitting
F12 will start a terminal and run Macaulay2 in it (if configured). Hitting
alt-enter will copy the current line to the terminal (like
F11 in emacs).
But there is another option that you might find useful. You can run the no windows version of Macaulay2 in emacs, in a vscode terminal.
I created a simple bash script that runs
the -nw runs emacs in tty (non-windows) mode. The -f M2 runs Macaulay2 on startup.
Then is vscode's settings, I pointed the macaulay2 executable location to that bash script (ctrl+, then search for macaulay2)
(probably it would be better if the command line arguments were exposed to the user in the vscode macaulay2 package, but this works fine for now).
Additionally, I added the lines
(add-hook 'emacs-startup-hook
(lambda () (delete-other-windows)) t)
(unless (display-graphic-p)
(menu-bar-mode -1))
to my
.emacs file in my home directory so that Macaulay2 won't split the window in emacs when its first run, and so emacs won't have a menu bar in tty mode.
Anyways, here's a screenshot of what it looks like:
These sorts of small hacks should also work in Mahrud's Macaulay2 interface for Atom.