all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrey Tykhonov <atykhonov@gmail.com>
To: Emanuel Berg <embe8573@student.uu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Search StackOverflow and paste code snippets without leaving the edited file
Date: Fri, 10 Jan 2014 12:00:32 +0200	[thread overview]
Message-ID: <CAM7J8HKBaDGYBCt7UWQfOm1UroTLm6QgBhLQudMp918YCqoQ9Q@mail.gmail.com> (raw)
In-Reply-To: <871u0ni3nt.fsf@nl106-137-194.student.uu.se>

2014/1/5 Emanuel Berg <embe8573@student.uu.se>

> Andrey Tykhonov <atykhonov@gmail.com> writes:
>
> > First of all because it is small enough, in my
> > opinion, to be a major mode.  It contains in itself
> > only three key bindings. So I decided that minor mode
> > will be appropriate.
>
> First of all, this project seems to be an absolute
> *killer*! M-a-r-v-e-l-o-u-s!
>

Let's make a GNU Emacs a better place to live! :-)


>
> As for major mode or not, I don't see why this should
> not be a major mode. Weather it should be a major mode
> or a minor mode is not a function of the project's
> size, but *character*. Why don't make a whole interface
> around this tool with one-key strokes? I.e., not `C-x
> p' or the like for previous question, but simply
> `p'. If you want this module to be reached from other
> modes, you can have that *interface* a minor mode,
> because this module truly reaches over the entire span
> of computer activity.
>

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.


>
> Some other thoughts:
>
> I can't stand web browsers for a thousand real and
> imagined reasons, but there is no denying the human
> "weight" does make the web indispensable.
>
> Gnus and Usenet, for example, should be a hundred times
> better than the hysterical SX sites, but because of
> the popularity of those sites, and the marginalization
> of lots of Usenet newsgroups (or Google groups, now),
> it doesn't matter. It is just reality. It is hard to
> beat thousands of programmers who are eager to prove
> themselves and are neurotic about their
> "reputation". Sad state, but submit a question - one
> second later, you have a correct answer. Like I said,
> hard to beat.
>
> With tools like this, perhaps in time, we can have "the
> best of both worlds".
>
> If you like, check out some interface hacks I did to
> w3m [1].

It is all about getting the contents of Google
> searches, YouTube, Pirate Bay, Wikipedia, etc., and to
> have that integrated with you Emacs buffer (the region,
> or word-at-point, to fire off searches).


I will check out it. Quite interesting how you've customized w3m!


> It has been
> working good for me, though your project is a big leap
> beyond those mere interfaces. Anyway, keep it up :)
>

Thank you!
If you have any ideas how to make `howdoi` better please share!


>
> [1] http://user.it.uu.se/~embe8573/conf/.emacs-w3m
>
> --
> underground experts united:
> http://user.it.uu.se/~embe8573
>


  parent reply	other threads:[~2014-01-10 10:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-27  9:54 Search StackOverflow and paste code snippets without leaving the edited file Andrey Tykhonov
2013-12-27 11:12 ` Tom
     [not found] ` <CAD3zm21kt_JReiDRufhY_TbG7V8rc3TLW+uah3oxq8+xE_tQEw@mail.gmail.com>
     [not found]   ` <CAM7J8HJtU3=ACaZ=WgQi5_kEq-ecnTNPiQgCxC8h79+0ZMTMuw@mail.gmail.com>
2013-12-27 21:40     ` Fwd: " Andrey Tykhonov
2013-12-29 17:43       ` York Zhao
2014-01-03 14:36         ` Andrey Tykhonov
2014-01-03 17:51           ` Tom
2014-01-04 23:22             ` Andrey Tykhonov
2014-01-05 21:11               ` Tom
2014-01-10 10:23                 ` Andrey Tykhonov
2014-01-10 16:49                   ` Tom
     [not found]                   ` <mailman.11532.1389372624.10748.help-gnu-emacs@gnu.org>
2014-01-10 18:54                     ` Emanuel Berg
2014-01-10 19:58                       ` Stefan Monnier
2014-01-11  0:21                       ` Andrey Tykhonov
2014-01-11  0:38                         ` Stefan Monnier
     [not found]                         ` <mailman.11571.1389400713.10748.help-gnu-emacs@gnu.org>
2014-01-11  1:20                           ` Emanuel Berg
2014-01-04 23:26           ` York Zhao
2014-01-04 23:52             ` Andrey Tykhonov
2014-01-05  0:23               ` York Zhao
2014-01-05  1:23                 ` Andrey Tykhonov
     [not found]                 ` <mailman.11053.1388885009.10748.help-gnu-emacs@gnu.org>
2014-01-05  2:05                   ` Emanuel Berg
2014-01-06  1:08                     ` Marcin Borkowski
     [not found]                     ` <mailman.11158.1388970524.10748.help-gnu-emacs@gnu.org>
2014-01-06  2:06                       ` Emanuel Berg
2014-01-06 22:05                         ` Marcin Borkowski
2014-01-06 23:41                         ` Marcin Borkowski
     [not found]                         ` <mailman.11239.1389051686.10748.help-gnu-emacs@gnu.org>
2014-01-07 18:54                           ` Emanuel Berg
2014-01-10 10:00                     ` Andrey Tykhonov [this message]
2014-01-10 12:43                       ` Paul Smith
2014-01-10 13:18                         ` Drew Adams
2014-01-10 23:33                           ` Andrey Tykhonov
2014-01-10 23:20                         ` Andrey Tykhonov
     [not found]                       ` <mailman.11515.1389357802.10748.help-gnu-emacs@gnu.org>
2014-01-10 18:43                         ` Emanuel Berg
2014-01-10 21:45                           ` Paul Smith
     [not found]                           ` <mailman.11554.1389390359.10748.help-gnu-emacs@gnu.org>
2014-01-10 21:53                             ` Emanuel Berg
     [not found]                     ` <mailman.11510.1389348059.10748.help-gnu-emacs@gnu.org>
2014-01-10 18:47                       ` Emanuel Berg
2014-01-10 23:43                         ` Andrey Tykhonov
  -- strict thread matches above, loose matches on Subject: below --
2014-01-03 17:53 Rustom Mody
2014-01-03 18:19 ` Tom
2013-12-26  7:21 Tom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM7J8HKBaDGYBCt7UWQfOm1UroTLm6QgBhLQudMp918YCqoQ9Q@mail.gmail.com \
    --to=atykhonov@gmail.com \
    --cc=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.