Atreyagaurav / litex-mode

LiTeX mode for emacs; A minor mode to convert valid lisp expressions to LaTeX
GNU General Public License v3.0
43 stars 4 forks source link

Option to use common lisp (through slime inferior process) #5

Closed Atreyagaurav closed 2 years ago

Atreyagaurav commented 2 years ago

Since the expressions are already in lisp, maybe we can make it use a inferior process for evaluating expressions and getting results, that way we can have the variables in the slime instead of polluting the emacs.

Another thing I noticed is elisp uses integer calculations so (/ 1 2) evals to 0 , while in clisp it evals to 1/2, so if there are integers like that in intermediate steps, we're very likely to get wrong results in direct evaluation in elisp. Or maybe it depends on the version or machine or sth, but at least it happens this way in my computer. Being able to use slime should help with that. And as for output of fractions, we should be able to format it using format variable function (making it if it doesn't exist), or if there's a way making slime output decimals.

Atreyagaurav commented 2 years ago

Solved in https://github.com/Atreyagaurav/litex-mode/pull/16 Further enhancement is needed.