OCaml and Reason on Emacs using lsp-mode

This year I started consolidating all the major modes by using lsp-mode and apheleia for all the programming language I use. The switch from OCaml’s merlin-mode was surprisingly painless. ...

May 26, 2022 · 2 min · Josef Erben

Reloading Flycheck After Loading Virtualenv

When I open Emacs to edit a Python project, the first command I run is pyvenv-activate to activate the virtualenv. If I have a Python file open of that project before running pyvenv-activate, flycheck won’t work because I install my development dependencies (which are needed by the checkers) in the local virtualenv. Luckily pyvenv provides a hook that runs whenever a virtualenv was activated. (defun clear-flycheck-auto-disabled-checkers () "Clears any automatically disabled flycheck checkers....

January 11, 2022 · 1 min · Josef Erben

Switching from elpy to anaconda-mode

I am using Emacs with elpy as my Python IDE. Minor issues that appeared lately made me explore other options for developing Python in Emacs. I ended up switching to a custom configuration based on anaconda-mode. ...

December 8, 2021 · 3 min · Josef Erben