Skip to content

Commit

Permalink
tweak(maxima): use locally installed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 16, 2023
1 parent 9a9748c commit 024a05e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modules/me-math.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,21 @@

;;; Code:

(defconst +maxima-available-p (executable-find "maxima"))
(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
:straight '(:host github :repo "emacsmirror/maxima"
:files (:defaults "keywords"))
:load-path +maxima-path-p
:when +maxima-available-p
:mode ("\\.ma[cx]\\'" . maxima-mode)
:interpreter ("maxima" . maxima-mode)
:hook ((maxima-mode maxima-inferior-mode) . maxima-font-lock-setup)
:commands maxima-inferior-mode
:commands inferior-maxima-mode
:custom
(maxima-display-maxima-buffer nil))

(use-package imaxima
:straight '(:host nil :repo "https://git.code.sf.net/p/maxima/code"
:files ("interfaces/emacs/imaxima/*"))
:load-path +maxima-path-p
:when +maxima-available-p
:commands imaxima imath-mode
:hook (imaxima-startup . maxima-inferior-mode) ; To get syntax highlighting
Expand Down

0 comments on commit 024a05e

Please sign in to comment.