Start to play with Fennel and Lua

This commit is contained in:
Gerard Vermeulen 2022-10-02 07:22:00 +02:00
parent 295ec8b3bc
commit bba8b405d2

View File

@ -3757,6 +3757,48 @@ support.
4. [[http://xahlee.info/talk_show/xah_talk_show_2022-01-20.html][Xah talk show: Elisp coding: xah-add-space-after-comma]]
5. [[http://xahlee.info/talk_show/xah_talk_show_2022-01-22.html][Xah talk show: Elisp coding: narrow-to-region, sort-lines, hilight-unicode]]
** [[https://fennel-lang.org/][Fennel Programming]]
:PROPERTIES:
:CUSTOM_ID: sec:fennel-programming
:END:
#+caption[Install =fennel-mode= and =ob-fennel= in case of =Fennel=]:
#+caption: Install =fennel-mode= and =ob-fennel= in case of =Fennel=.
#+name: lst:install-ob-fennel-mode
#+begin_src emacs-lisp
(when (and (executable-find "fennel")
(ensure-package-installation 'fennel-mode 'quelpa))
(unless (package-installed-p 'ob-fennel)
(quelpa '(ob-fennel :repo "andreyorst/ob-fennel" :fetcher gitlab))))
#+end_src
#+caption[Fennel example]:
#+caption: Fennel example.
#+name: lst:fennel-example
#+begin_src fennel :results silent :session fennel :var x=10 y=20
(+ x y)
#+end_src
** [[https://www.lua.org/][Lua Programming]]
:PROPERTIES:
:CUSTOM_ID: sec:lua-programming
:END:
#+caption[Install =lua-mode= in case of =Lua=]:
#+caption: Install =lua-mode= in case of =Lua=.
#+name: lst:install-lua-mode
#+begin_src emacs-lisp
(when (and (executable-find "lua")
(ensure-package-installation 'lua-mode)))
#+end_src
#+caption[Lua example]:
#+caption: Lua example.
#+name: lst:lua-example
#+begin_src lua :results silent :var x=10 y=20
return (x+y)
#+end_src
** [[info:maxima#Top][Maxima Programming (info)]]
:PROPERTIES:
:CUSTOM_ID: sec:maxima-programming