From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [FYI] New emacs-w3m feature: edit html-textareas in Org-mode
Date: Tue, 08 Oct 2013 14:52:59 +0200 [thread overview]
Message-ID: <87mwmjj55g.fsf@gmail.com> (raw)
Hi List,
if you get the newest CVS version of emacs-w3m
#+begin_src sh
% cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot login
CVS password: # No password is set. Just hit Enter/Return key.
% cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m
#+end_src
you can now toggle the major-mode of textarea edit-buffers between text-mode
and org-mode with 'M-x w3m-form-textarea-toggle-major-mode'.
When you activate the use of Org-mode, a full-size Org-mode edit-buffer
in the same (sensibly-splitted) Emacs window (with the text of the
clicked html textarea) will be offered in 'show-all' state for editing
- instead of a minimal edit-buffer in text-mode.
In that buffer, minor-mode `w3m-form-input-textarea-mode' will be activated
(with a special minor-mode keymap that avoids clashes with Org-mode's
keybindings) offering the following commands:
,-----------------------------------------------------------
| W3m-Form-Input-Textarea minor mode (no indicator):
|
| Minor mode to edit form textareas of w3m.
|
| C-c C-c Set the value and exit from this textarea.
| C-c C-k Exit from this textarea without setting the value.
| C-x C-s Save editing data in this textarea.
`-----------------------------------------------------------
The default keybindings above (text-mode) are replaced with
,--------------------------------------------------------------------
| M-# c Set the value and exit from this textarea.
| M-# k (or M-# q) Exit from this textarea without setting the value.
| M-# s Save editing data in this textarea.
`--------------------------------------------------------------------
when the textarea edit-buffer is in org-mode.
Other attempts to make emacs-w3m and Org-mode work together are cited in the
[[http://www.emacswiki.org/emacs/emacs-w3m][Emacs Wiki]].
PS
Here is the ChangeLog entry for the new emacs-w3m feature described above:
,-------------------------------------------------------------------------
| 2013-10-07 Thorsten Jolitz <tjolitz@gmail.com>
| * w3m-form.el (w3m-form-input-textarea-mode-setup): New option for
| setting up the textarea input buffer in org-mode instead of text-mode.
|
| (w3m-form-input-textarea-org-mode-map) New minor-mode-map.
| (w3m-form-textarea-use-org-mode-p) New variable.
| (w3m-form-textarea-toggle-major-mode) New function.
| (w3m-form-input-textarea-mode-setup) Setup textarea edit buffer with
| major-mode 'org-mode if `w3m-form-textarea-use-org-mode-p' is non-nil.
| (w3m-form-input-textarea) Split window sensibly if
| `w3m-form-textarea-use-org-mode-p' is non-nil.
| (w3m-form-input-textarea-mode) Override default minor-mode map with
| new minor-mode-map in case major-mode is 'org-mode.
`-------------------------------------------------------------------------
--
cheers,
Thorsten
reply other threads:[~2013-10-08 12:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwmjj55g.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).