I have an elisp file that contains the following:
(defun hello ()
(interactive)
(message "Hello World"))
(provide 'examples)
When I call unload-feature examples RET
, the function hello
is still defined, and I can still call it.
However, when I do C-h f hello
, Emacs simply states:
hello is an interactive Lisp closure.
(hello)
Not documented.
In theory, according to the documentation unload-feature
should undefine all the defun
s.
How can I make it so that when I call unload-feature
, Emacs will "forget" hello's definition?
Emacs Version: GNU Emacs 29.3
Note: I am loading the file using dir-locals
like this:
((nil . ((eval . (load-file (concat (projectile-project-root) "hello.el"))))))