Timeline for Setting hook without calling external function
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2022 at 13:33 | history | edited | gigiair | CC BY-SA 4.0 |
added 181 characters in body
|
Aug 29, 2022 at 12:30 | vote | accept | Dilna | ||
Aug 29, 2022 at 12:29 | comment | added | NickD |
Why is colum-mhook (sic) needed at all? Why not call add-hook directly?
|
|
Aug 29, 2022 at 9:39 | comment | added | gigiair |
@Fran Burstall: (remove-hook 'prog-mode-hook (lambda()(setq fill-column 72))) do the trick as if it is a named function.
|
|
Aug 29, 2022 at 9:17 | comment | added | Fran Burstall |
I was about to say the same thing but also to remark that doing this makes it a bit more tricky to undo via remove-hook .
|
|
Aug 29, 2022 at 9:14 | history | answered | gigiair | CC BY-SA 4.0 |