help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to modify a function of a package


From: Nikolay Kudryavtsev
Subject: Re: How to modify a function of a package
Date: Sat, 28 Oct 2023 16:18:39 +0300
User-agent: Mozilla Thunderbird

Since everyone gave you only the more advanced answers, here's also the simple ones:

1. You do (require 'package) before redefining a function in it. Won't always work, a package may do something really sneaky with it's functions, but should suffice for most cases.

2. If you use use-package, put your function redefinition into the :config form and that's it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]