From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: Re: Line Wrapping set to Word Wrap in Summary Buffer - how to permanently change to Truncate Long Lines?
Date: Wed, 02 Dec 2015 18:26:09 +0100 [thread overview]
Message-ID: <87d1uo7oem.fsf@debian.uxu> (raw)
In-Reply-To: <m2y4ddurhq.fsf@krugs.de>
Rainer M Krug <Rainer@krugs.de> 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?
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)
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-12-02 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 9:10 Rainer M Krug
2015-12-01 18:14 ` Emanuel Berg
2015-12-02 9:30 ` Rainer M Krug
2015-12-02 17:26 ` Emanuel Berg [this message]
2015-12-02 17:23 ` Rainer M Krug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1uo7oem.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).