Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58035
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2013-10-30 18:43 +0530 |
| Subject | Small emacs fix for Google group users |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1808.1383138843.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web