I'm blogging about Emacs, Drupal, php and exciting subjects

· Lars Nielsen

Emacs Magit: Staging, Commits, Rebase, Stash and Bisect, With Every Key Checked

Magit is the Git interface for Emacs: one status buffer where you stage single hunks, commit, rebase, stash and bisect with short key sequences. This guide covers my own config and the keys I use, every one checked against Magit's source, plus the mistakes an earlier version of this article had.

Read article Emacs Magit: Staging, Commits, Rebase, Stash and Bisect, With Every Key Checked
· Lars Nielsen

Eglot vs lsp-mode in 2026: Which Language Server Client Should You Use?

Eglot or lsp-mode? Eglot is built into Emacs, small, and uses the editor's own tools (Flymake, xref, Eldoc, completion-at-point). lsp-mode is a larger third-party package with its own UI extensions. Here is how they compare in 2026, checked against Eglot 1.24.31 (in Emacs 31.1), lsp-mode's own documentation, and the Eglot setup I use every day for PHP.

Read article Eglot vs lsp-mode in 2026: Which Language Server Client Should You Use?
· Lars Nielsen

PHP Attributes in Drupal 11: Replacing Annotations in Plugins and Hooks

For years Drupal used docblock annotations — special comments parsed at runtime by the Doctrine Annotations library — to declare plugins, entity types, and field formatters. PHP 8.0 introduced native attributes as a first-class language feature, and Drupal 11 now supports them everywhere annotations were used.

Read article PHP Attributes in Drupal 11: Replacing Annotations in Plugins and Hooks
Subscribe to Linkhub