Posts with tag: emacs-lisp


RSS feed for tag

Write your own Emacs Lisp macros - a short introduction

Thu Oct 17 2024 ~ Tags: emacs programming emacs-lisp lisp

Have you ever wondered how you can write your own macros in Emacs Lisp? Or what that even mean? Macros are a very powerful tool, and one that has long history in the Lisp family of programming languages. Writing your own syntax seems enticing, and that is indeed what we will look at. We will see simple examples, as well as creating your own syntax for anonymous functions (aka lambdas).

Read more..

Packages that make Emacs Lisp more pleasant

Mon Oct 03 2022 ~ Tags: emacs emacs-lisp programming lisp

Emacs Lisp can sometimes seem a little archaic compared to more modern languages. In higher level language we are spoiled with a multitude of easy string handling, list handling, pattern matching and so on. What if I told you that some packages can give you the same ease of use for Emacs Lisp? That they provide more clear APIs, give features you are used to from other languages, and/or abstract away the more tedious details.

Read more..

Emacs Lisp debugging tips

Fri Aug 05 2022 ~ Tags: emacs emacs-lisp programming

Have you ever gotten weird errors in an Emacs Lisp package? Something like "wrong type argument" or similar shown in the minibuffer? At first glance, these seem kind of cryptic. Where do they come from? Can I get a stack trace? What arguments are functions called with? Today I will show you how to answer these questions!

Read more..