From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: How to speed up cutting & pasting from/to emacs? Date: Mon, 13 Jul 2015 02:32:39 +0200 Message-ID: <87vbdokic8.fsf@nl106-137-147.student.uu.se> References: <87zj31605c.fsf@skimble.plus.com> <87wpy58fkd.fsf@nl106-137-147.student.uu.se> <87y4ilp5iv.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436747675 31258 80.91.229.3 (13 Jul 2015 00:34:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 00:34:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 13 02:34:26 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZERhR-0000XC-NC for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2015 02:34:25 +0200 Original-Received: from localhost ([::1]:52372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERhQ-0004e8-P4 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 20:34:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERhF-0004dw-PR for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:34:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZERhA-0005pM-61 for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:34:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZERh9-0005pI-Vr for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 20:34:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZERh8-0000OM-Nf for help-gnu-emacs@gnu.org; Mon, 13 Jul 2015 02:34:06 +0200 Original-Received: from nl106-137-156.student.uu.se ([130.243.137.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 02:34:06 +0200 Original-Received: from embe8573 by nl106-137-156.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jul 2015 02:34:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 125 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-156.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:qnZZWv7wQUNJS1Cnj4u30QwTt5w= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105666 Archived-At: Sharon Kimble writes: > Primarily 'zim' and pasting to and from 'JabRef', > I'm mostly creating bibtex records from a published > bibliography on an article on the web, which I've > opened in w3m. I would use 'eew' if I could only > find out how to use tabs with it! When you say w3m, you mean Emacs-w3m, right? If not, look for it in the Debian repos or Ubuntu ditto if you are using that. On Debian, it is in a package called "w3m-el-snapshot". Emacs-w3m is more mature/seasoned than eew so probably it has more power at this point. But such things can change quickly. There are tabs in Emacs-w3m, for sure. Here are some config for those [1] - and in the directory below, more on Emacs-w3m in general. > By "speed-up" I mean that I have to wait for emacs > to catch up with where I've pasted something. What do you mean - "catch up"? > Yes, emacs as a GUI along with using the mouse. > Knowing that "Openbox" is similar to "fluxbox", > exactly *what is* your command in your "keys" page > to access emacs again please? I know how to *start* > a program, but not how to *access* a currently > running program. I don't have any experience with fluxbox, but all civilized WMs can be interacted with using the program wmctrl. This should be in your repos as well, so get it. It works like this: 1) Type 'xman &' and 'xcalc &'. They should appear as two neat little windows (for display purposes ONLY as I wouldn't recommend using them for anything else). 2) Type 'wmctrl -l'. If it works you should see something like this: 0x00a00013 0 nl106-137-147 Calculator 0x0080000e 0 nl106-137-147 xman If it doesn't work, it means fluxbox is incompatible with wmctrl, and this method won't work. (I don't think that will happen.) By the way, here is a useful alias: alias wins='wmctrl -l' 3) Type 'wmctrl -a xman'. The window of xman should get into focus. Now, try to get to xcalc the same way. But not exactly the same way! Remember the output of 'wins' - xcalc wasn't refered to as "xcalc" but as "Calculator", i.e. that what is appearing in the title bar of the window of the program. Other than that it is the same. 4) Now install xbindkeys, and start it with 'xbindkeys'. Confirm that it runs with ps -e | grep xbindkeys (Later, to make it run each time you start X, put 'xbindkeys &' in ~/.xinitrc.) 5) Last, set up the shortcuts in ~/.xbindkeysrc. "wmctrl -a Calculator" alt+k "wmctrl -a xman" alt+w 6) Perhaps one can refresh xbindkeys somehow... If you find out, tell me. If not, type 'pkill xbindkeys', confirm it doesn't run, then run it again with 'xbindkeys'. 7) Now hit Alt+k for xcalc, and Alt+w for xman! Phew! > I've seen and read about how bad using the mouse is > in terms of potential RSI, but I still find > it useful. Using the mouse is bad for your arm/hand and eyes, yes, call it what you want (RSI = Repetitive strain injury, by the way), but in this context it is bad in terms of *speed* as you have to move your hands back and forth from typing position, which is the "asdf" and "jkl;" keys for the left and right hand, respectively. This lack of speed also prolongs the time to do things which enlarges the otherwise negative effects. With typing on the other hand, some do it with such speed they never stop :) More, the mouse is also inefficient: "That one... no, not this. This! The one to the left! Your left, yes that one." Compare that to the professional discussion in a work shop: "Open the crank with a pin wrench. The lock ring is left threaded." It is just a whole other level. [1] http://user.it.uu.se/~embe8573/conf/emacs-init/w3m/w3m-tabs.el Examples of the other files mentioned: http://user.it.uu.se/~embe8573/conf/.xbindkeysrc http://user.it.uu.se/~embe8573/conf/.xinitrc -- underground experts united http://user.it.uu.se/~embe8573