all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: jidanni@jidanni.org
Cc: cyd@stupidchicken.com, bug-gnu-emacs@gnu.org
Subject: bug#6152: wikipedia-mode hard to fix linebreaks
Date: Mon, 10 May 2010 12:41:31 +0200	[thread overview]
Message-ID: <87vdawujhg.fsf@mat.ucm.es> (raw)
In-Reply-To: <87zl08f4uk.fsf@jidanni.org> (jidanni@jidanni.org's message of "Mon, 10 May 2010 18:06:43 +0800")

>>>>> On Mon, 10 May 2010 18:06:43 +0800, jidanni@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)
   >    ))








  reply	other threads:[~2010-05-10 10:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-09 16:28 bug#6145: wikipedia-mode hard to fix linebreaks jidanni
2010-05-10  9:34 ` Uwe Brauer
2010-05-10 10:06   ` bug#6152: " jidanni
2010-05-10 10:41     ` Uwe Brauer [this message]
2010-05-10 11:03       ` bug#6153: " jidanni

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=87vdawujhg.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=jidanni@jidanni.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.