4 ms·
If you haven't yet I'd recommend going through the tutorial and looking at the elisp manual. Both are accessible if you press `C-h i` (there's a lot of other go
by tephra 4y ago
If you haven't yet I'd recommend going through the tutorial and looking at the elisp manual. Both are accessible if you press `C-h i` (there's a lot of other goodies in the list of manuals you get there, the calc one is great).
- Jtsummers 4y agoExcept on Debian and Debian-derived systems. Apparently there's an issue with license compatibility, on those you may need to install this package: emacs-common-non-dfsg. But on pretty much every other system with a standard emacs install, yes, `C-h i` is all you need to get to the documentation.
- wara23arish 4y agoIll definitely give that a go. I feel like I NEED to learn Lisp. My college data structures prof had his own book where all the java examples had a lisp counterpart. He wouldn’t allow us to use normal Java data structures for assignments rather a lisp data structure called “cons”. Not sure how different elisp and lisp is but syntax wise they look identical to me.
- Jtsummers 4y agoIf you know some Common Lisp, Emacs Lisp isn't hard to learn (and they're even closer than when I learned elisp 15-20 years ago). Some minor gotchas with literal syntax (literal arrays/vectors and chars are represented differently in each) and some differences in their standard libraries. A more major gotcha is elisp's dynamic scope, which comes up if you're used to lexical scope. https://www.gnu.org/software/emacs/manual/html_node/elisp/Dynamic-Binding.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Dy... In practice, I've never been bitten by this except when I tried to do some fancier functional programming things in elisp that I normally would use another language for. And you can specify that you want lexical scope: https://www.gnu.org/software/emacs/manual/html_node/elisp/Lexical-Binding.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Le... The whole section those two come from: https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Scoping.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Va...
- wara23arish 4y agoVery cool. Thanks for the info. https://www.cs.utexas.edu/users/novak/cs31436.html https://www.cs.utexas.edu/users/novak/cs31436.html this is the book i mentioned earlier if you’re interested. e.g. of building a linked list I might go through some of it purely in lisp for the heck of it.