Skip to content

Commit

Permalink
feat(math): restore Maxima configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 19, 2023
1 parent 9cd9ede commit 9a2b356
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 34 deletions.
20 changes: 20 additions & 0 deletions modules/me-math.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@

;;; Code:

(defconst +maxima-path-p "/usr/share/emacs/site-lisp/maxima/")
(defconst +maxima-available-p (and (executable-find "maxima") (file-directory-p +maxima-path-p)))

(use-package maxima
:load-path +maxima-path-p
:when +maxima-available-p
:mode ("\\.ma[cx]\\'" . maxima-mode)
:interpreter ("maxima" . maxima-mode)
:commands inferior-maxima-mode maxima maxima-info maxima-start maxima-apropos
:custom
(maxima-display-maxima-buffer nil))

(use-package imaxima
:load-path +maxima-path-p
:when +maxima-available-p
:commands imaxima imath-mode
:hook (imaxima-startup . maxima-inferior-mode) ; To get syntax highlighting
:custom
(imaxima-use-maxima-mode-flag nil))

(use-package math-preview ; Needed by ein to render equations
:straight t)

Expand Down
34 changes: 0 additions & 34 deletions modules/obsolete/me-maxima.el

This file was deleted.

0 comments on commit 9a2b356

Please sign in to comment.