Let’s Write a Tree-Sitter Major Mode
Ah, major modes. There are hundreds of them, and most work in the background, rarely surfacing to tell you what they do or why. They power Emacs, and they grant purpose and verisimilitude to buffers, one of the most important concepts in Emacs. Without major modes – or indeed the buffers that depend on them – you’d be stuck with a rather dumb and basic editor.
Major modes – parti…
Read More →
New to Mastering Emacs?
Are you exploring Emacs for the first time, or yearning to take your skills to new heights? Here’s a select collection of articles to guide you on your journey:
Running Shells in Emacs: An Overview If you want to know more about using Emacs as a terminal emulator or to run Shells, this is a great place to start. I cover Shell Mode, a wrapper around shells such as
bash; EShell, a fantastic shell written entirely in elisp; Term, a builtin terminal emulator; and VTerm, a blazing fast terminal emulator package.
Combobulate: Structured Movement and Editing with Tree-Sitter Combobulate is my package that adds advanced structured editing and movement to a slew of programming modes. It’ll supercharge your development experience. Give it a shot.
Evaluating Elisp in Emacs Evaluating elisp is a necessary skill you must learn once you reach a certain point in your Emacs career. I explain all the ways you can do it.
Understanding Minibuffer Completion The minibuffer drives most of your interactions with Emacs, so you should spend the time to learn how it really works. Emacs has had a lot of development over the years to improve the quality and user experience of the minibuffer completion system.
Complete Guide to Mastering EShell If the idea of using an all-Emacs shell is alluring then you must read my article on mastering EShell. It tightly integrates with Emacs and has a wealth of interesting features.
Mastering Keybindings Binding keys in Emacs is not easy if you haven’t done it before, but in this article I will walk you through all the many ways of doing it: how to bind keys to particular modes and globally and a selection of templates you can use for your own init file.
Keyboard Macros are Misunderstood Few people really use keyboard macros. They’re consigned to boring, repetitive text editing — but you can do so much more: set up your favorite window layout; bulk edit across files; and much more. In fact, they should be your first port of call for basic Emacs automation tasks if you’re not that handy at elisp yet.
My book If you’re struggling with Emacs, then give my book a try. I’ll teach you Emacs in 314 breezy, easy-to-read pages.
The Mastering Emacs Reading Guide My reading guide will help you get the most from my blog and the most from Emacs.
What's new on Inspired Python
Inspired Python is a new site of mine focused on high-quality Python articles and courses. If you like Python, you should check it out!