Email the Author

You can use this page to email Marcin Borkowski about Hacking your way around in Emacs.

Please include an email address so the author can respond to your query

This message will be sent to Marcin Borkowski

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

This is an intermediate textbook on Emacs Lisp. If you are an Emacs user, chances are you may want to learn some Emacs Lisp (also called Elisp) – the language the Emacs editor is (mostly) written in. Emacs is an incredibly flexible tool, but using this flexibility requires learning to express oneself in the language Emacs understands.

This is not a beginner's book. That role is best fulfilled by Robert J. Chassell's fantastic (and free!) book entitled An introduction to programming in Emacs Lisp. This book is intended as the next step after reading that one.

After having studied this book, the reader should be able to program Emacs using some common Elisp idioms, know a fair amount of built-in functions and know how to learn about more of them, read parts of Emacs' source code, and consult the Emacs Lisp Reference whenever needed.

This book is focused on practice. While I introduce all needed concepts and explain them, they are all motivated by practical needs and backed up by actual, working code.

In the first chapter (available for free) we develop commands to move the current line up or down. Perhaps the most important takeaways are ways of using Emacs self-documenting nature to find out about existing functions doing things we need and using prefix arguments.

The second chapter is devoted to a whole package allowing the user to reorder words in a sentence (or other fragment of text). There is a lot to learn from it, from how to write a minor mode, to supporting regions in interactive commands, to using overlays, and more.

In the final, third chapter we write some code to count the lines of code in a program. This is an opportunity to present yet another set of techniques, most notably some elements of functional programming, a very brief introduction to regular expressions and the idea of lexical scoping.


About the Author

Marcin Borkowski’s avatar Marcin Borkowski

@marcin_mbork

I am a mathematician, a blogger, a technical writer, a programmer, and an Emacs user. Also, a part of a multi-generational family of geeks, a boardgamer, amateur translator, a former teacher and more.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Hacking-your-way-emacs › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss