[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [FYI] New emacs-w3m feature: edit html-textareas in Org-mode
From: |
Thorsten Jolitz |
Subject: |
[O] [FYI] New emacs-w3m feature: edit html-textareas in Org-mode |
Date: |
Tue, 08 Oct 2013 14:52:59 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Hi List,
if you get the newest CVS version of emacs-w3m
#+begin_src sh
% cvs -d :pserver:address@hidden:/storage/cvsroot login
CVS password: # No password is set. Just hit Enter/Return key.
% cvs -d :pserver:address@hidden:/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 <address@hidden>
| * 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] [FYI] New emacs-w3m feature: edit html-textareas in Org-mode,
Thorsten Jolitz <=