From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Tykhonov Newsgroups: gmane.emacs.help Subject: Re: Search StackOverflow and paste code snippets without leaving the edited file Date: Sat, 11 Jan 2014 01:43:19 +0200 Message-ID: References: <871u0ni3nt.fsf@nl106-137-194.student.uu.se> <87a9f3ptbk.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1389397428 8807 80.91.229.3 (10 Jan 2014 23:43:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2014 23:43:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 11 00:43:56 2014 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 1W1lk2-0003r1-V8 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 00:43:55 +0100 Original-Received: from localhost ([::1]:59515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1lk2-00050d-IS for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2014 18:43:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ljq-00050V-46 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 18:43:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1ljo-00062A-M8 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 18:43:42 -0500 Original-Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:57546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ljo-000626-ET for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 18:43:40 -0500 Original-Received: by mail-ob0-f175.google.com with SMTP id uz6so5506715obc.34 for ; Fri, 10 Jan 2014 15:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=4a+jm2+EVKwuW006x7pp1DEqaWrJisr+xmH14MKO34o=; b=umWtGvdYNZJQCfj1VQ4Kn+0e6cQ49p0sekMo1KDr/APsIC2t3jH0GX2/gur25E+qCD rYeL9JKBCKKAU3u7j9LbwMJUc1oYmfXQ1qGMQgmUT8aT/pPCQw2l2ksqj6tXIzzH+yBG 1O1MAyWySa+6FUOu6a7g+JYzwBSD2hd8L40jc5zWxykiZCOTU1vMaS2rYqztWjGf9neY 1Pu7Jb5oQpG65wqM4Z/Lh9/pZJuR3Nh7lPOjvGYsb7zGYjSPDHAVg1ZzGDiwnM2Ge/lJ +Bb7OcY1FHZfcTX2U4fW85ZJzbQ5+hMXJk3SshYB/rdJ7bjZSQ1aEn+zZAX4lUX4mh+H 5s+A== X-Received: by 10.182.28.35 with SMTP id y3mr9523565obg.55.1389397419689; Fri, 10 Jan 2014 15:43:39 -0800 (PST) Original-Received: by 10.76.169.42 with HTTP; Fri, 10 Jan 2014 15:43:19 -0800 (PST) In-Reply-To: <87a9f3ptbk.fsf@nl106-137-194.student.uu.se> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22f X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:95351 Archived-At: 2014/1/10 Emanuel Berg > Andrey Tykhonov writes: > > > I got the reason to implement major mode! Thank you! > > I just recently committed the major mode and now "n", > > "p", "b", "q", "<", ">" key bindings (for next, > > previous, browse, quit-window, beginning of buffer, > > end of buffer) are available in a pop up buffer. Also > > there is minor mode (howdoi-minor-mode) available > > with such key bindings: > > > > C-c o n - howdoi-show-next-question C-c o p - > > howdoi-show-previous-question C-c o c - > > howdoi-show-current-question C-c o b - > > howdoi-browse-current-question C-c o q - howdoi-query > > C-c o l - howdoi-query-line-at-point C-c o r - > > howdoi-query-line-at-point-replace-by-code-snippet > > > > I'm not sure that I chose right prefix "C-c o". I hope > > it will be ok. > > Leaving the prefix issue aside (i.e., exactly what > prefix to use), this is a *great* interface: a major > mode for super-fast interaction, and a minor mode with > just a prefix to remember, and then exactly the same > keys. > Well, inspired by your note, to make an interface a little bit better I've changed "C-c C-o q" to the "C-c C-o u" key bindings (minor mode). So it doesn't somehow intersect with the key binding "q" (major mode). And also I've added key binding "u" (major mode) to be able to make howdoi-query directly from a pop up buffer. > > -- > underground experts united: > http://user.it.uu.se/~embe8573 >