[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46193: Enabling Auto Fill mode
From: |
Lars Ingebrigtsen |
Subject: |
bug#46193: Enabling Auto Fill mode |
Date: |
Mon, 01 Feb 2021 10:20:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
jai-bholeki@gmx.com writes:
> I have noticed that enabling a minor-mode using texinfo-mode-hook fails after
> setting auto-fill comments using a hook.
>
> (add-hook 'texinfo-mode-hook
> (lambda () ((set (make-local-variable
> 'comment-auto-fill-only-comments) t)))
> (auto-fill-mode)
>
> ;; crucible-mode not enabled after setting comment-auto-fill-only-comments
> (add-hook 'texinfo-mode-hook 'crucible-mode)
(add-hook 'texinfo-mode-hook
(lambda () ((set (make-local-variable
'comment-auto-fill-only-comments) t)))
That's not valid syntax -- you have one extra pair of () around the
`set' function call.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no