Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58035 > unrolled thread
| Started by | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| First post | 2013-10-30 18:43 +0530 |
| Last post | 2013-10-30 06:22 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Small emacs fix for Google group users Rustom Mody <rustompmody@gmail.com> - 2013-10-30 18:43 +0530
Re: Small emacs fix for Google group users rusi <rustompmody@gmail.com> - 2013-10-30 06:22 -0700
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2013-10-30 18:43 +0530 |
| Subject | Small emacs fix for Google group users |
| Message-ID | <mailman.1808.1383138843.18130.python-list@python.org> |
For the double spacing rubbish produced by GG, I hacked up a bit of emacs lisp code --------- (defun clean-gg () (interactive) (replace-regexp "^> +\n> +\n> +$" "-=\=-" nil 0 (point-max)) (flush-lines "> +$" 0 (point-max)) (replace-regexp "-=\=-" "" nil 0 (point-max))) (global-set-key (kbd "<f9>") 'clean-gg) -------------- To try 1. Eval the following in emacs* 2. Cut-paste the quoted text from GG into emacs 3. Call with F9 4. Cut-paste back into GG * Yeah emacs usage will seem weird to non emacs users Im just hoping some more habitual emacs users can try this, maybe a few tweaks here and there and then less habituated emacs users can try it. For now if you put the elisp above in a file gg.el and start emacs with $ emacs -l gg.el (thats an el not a one) it should do the eval above. Rusi -- http://www.the-magus.in http://blog.languager.org
[toc] | [next] | [standalone]
| From | rusi <rustompmody@gmail.com> |
|---|---|
| Date | 2013-10-30 06:22 -0700 |
| Message-ID | <6e0ca92b-ecab-493d-abff-4df95f3e9c49@googlegroups.com> |
| In reply to | #58035 |
On Wednesday, October 30, 2013 6:43:33 PM UTC+5:30, rusi wrote: > For the double spacing rubbish produced by GG, I hacked up a bit of > emacs lisp code <snipped> > -------------- > To try > 1. Eval the following in emacs* Tsk! It should be eval the preceding elisp!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web