In my package I have the following:
(defcustom foobar-on-exit t "Boolean variable, enabled by default." :type 'boolean :group 'foobar) (if foobar-on-exit (add-hook 'kill-emacs-hook 'some-message))
So I get a message when I close Emacs.
Then in my init.el I set the value of
(setq foobar-on-exit 'nil)
After evaluating or restarting, I still got the message while the variable
foobar-on-exit is still false.
So somewhere I went wrong. Any hint?