GNU bug report logs - #6152
wikipedia-mode hard to fix linebreaks

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Mon, 10 May 2010 10:08:02 UTC

Severity: minor

Merged with 6145, 6153

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Uwe Brauer <oub <at> mat.ucm.es>
To: jidanni <at> jidanni.org
Cc: cyd <at> stupidchicken.com, bug-gnu-emacs <at> gnu.org
Subject: bug#6152: wikipedia-mode hard to fix linebreaks
Date: Mon, 10 May 2010 12:41:31 +0200
>>>>> On Mon, 10 May 2010 18:06:43 +0800, jidanni <at> jidanni.org wrote:

   > Sorry Uwe, I have now fixed my problem. I did it by putting this in
   > ~/.emacs-w3m.el :
well I am glad but I still don't understand: wikipedia-mode
is a mayor mode, (all files with extension .wiki have this
mode turned on.)

but it seems you edited a file in
w3m-form-input-textarea-mode-hook! Of course in the mode,
auto-fill might be turned on.

BTW longlines mode is for *displaying* longlines it has
nothing to do with linebreaks!

Well another solution would be to modify the auto-list.

(add-to-list  'auto-mode-alist
     (cons '("\\.wiki\\'" . wikipedia-mode) auto-mode-alist))

and substitute .wiki by the extension you like.


Uwe 

   > (autoload 'wikipedia-mode "wikipedia-mode.el")
   > (add-hook
   >  'w3m-form-input-textarea-mode-hook
   >  (lambda nil
   >    (turn-off-auto-fill)
   >    (wikipedia-mode)
   >    (longlines-mode 0) ;;The Key, DISCOVERED QUITE ON MY OWN
   >    (define-key wikipedia-mode-map "\C-c\C-c" 'w3m-form-input-textarea-set)
   >    (define-key wikipedia-mode-map "\M-u" 'upcase-word)
   >    ))






This bug report was last modified 15 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.