Emanuel Berg <[email protected]> writes:

> Rainer M Krug <[email protected]> writes:
>
>> All this does not work if one sets
>> global-visual-line-mode to 1 in a different
>> buffer...
>>
>> Found it, changed it to visual-line-mode and
>> everything is working again.
>
> ... do you really want `visual-line-mode' in a Gnus
> summary buffer?

No - I don't want it - I had it for a different buffer.

>
> Anyway, instead of using defaults, it can be sensible
> to set up things like this on a per-mode basis.
> Especially since you mention the `gnus-summary-mode'
> in particular probably this is what you should do.
>
> For example, here is what I do for the HTML and XML
> modes - as you see I disable `visual-line-mode' for
> each.
>
> You can do the same (or enable it) with
> `gnus-summary-mode-hook', if need be.
>
> ;; HTML
> (defvar html-mode-map)
> (defun html-mode-hook-f ()
>   (enable-line-mode)
>   (define-key html-mode-map "\C-ow" #'w3m-view)
>   (auto-fill-mode   -1)
>   (visual-line-mode -1) )
> (add-hook 'html-mode-hook #'html-mode-hook-f)
>
> ;; XML
> (defun nxml-mode-hook-f ()
>   (visual-line-mode -1) )
> (add-hook 'nxml-mode-hook #'nxml-mode-hook-f)

Interesting - have never thought about that. Will look into this.

Thanks,

Rainer

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to