Emacs
Enable Jupyter in Doom Emacs
tech emacsThere are a few adjustments needs for the default installation when using the jupyter package in Emacs. Here’s a step-by-step guide to configure it properly with Doom Emacs.
Step 1: Install the jupyter package.
Add this line to package.el
:
(package! jupyter) ;
Step 2: Enable builtin Jupyter Support in Org Mode
To enable Jupyter support in Org mode, make the following modifications in your init.el
file:
- Uncomment the
ein
line. The emacs-ipython-notebook is a dependency of jupyter package. - Add
+jupyter
to the Org settings. For more details, refer to :lang org:
(org +jupyter) ; organize your plain life in plain text
Step 3: Patch for Runtime Errors with ZeroMQ
To address a runtime error related to ZeroMQ (as discussed in this issue), append the following code to your config.el
or any other configuration file:
Emacs Lisp Introduction for Python Programmers
emacs lisp tech pythonThis is a brief introduction to Emacs Lisp for Python programmers, (although I am not an Elisp expert, and actually I am more familiar with Python than Elisp). Both languages have quite different syntaxes, it is interesting to see how can implement Python code with lisp code.
The content follows the strucutre from Learn X in Y Minutes Where X is Python, and we will touch all the topics.
Primitive Datatypes and Operators
Numbers
Python
| Elisp
|
Bools and comparasion
In Emacs Lisp, booleans are represented by the symbols t
for true and nil
for false.
Emacs Essentials
emacs techIt is a steep learning curve to master Emacs lisp, there are mainly two issues in it from my experience
- the lisp syntax and functional programming
- the fragmented methods and libraries
For the 1st issue, it is easy to master the syntax after writing several programs and getting used to them, but for the 2nd one, one needs to take notes or remember something.
In this blog, I focus on the 2nd point and keep updating the notes of some methods and libraries that I think are essential for writing Emacs lisp packages.