Raveen Kumar

Advising a function in emacs lisp

One of the awesome things that I found when programming in elisp is the advice. For any function, you can advice before, after, around, to it.

When you advice a function A with a function B. Function B will executed before it. This is really interesting and useful.

(advice-add 'funa :before 'funb)

EMACS is a event based program, it has hooks, advices and all that goodness to modify and customize anything. 🪝

#Emacs #Elisp #Programming