minus-square0lMon@alien.topBtoEmacs@communick.news•It is recommended to not use lambdas in (add-hook) expressions. Is there a better way to do (setq)s for major modes without (add-hook) at all?linkfedilinkEnglisharrow-up1·11 months agoHej Hej, Or you could just write the defun inside the add-hook (add-hook 'org-mode-hook (defun silly-hook-defun () (message "it works))) This should allow to remove later the hook if you want. Cheers! linkfedilink
Hej Hej,
Or you could just write the defun inside the add-hook
(add-hook 'org-mode-hook (defun silly-hook-defun () (message "it works)))
This should allow to remove later the hook if you want.
Cheers!