From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] newcomment.el (comment-line): New command. Date: Mon, 02 Feb 2015 08:01:00 +0100 Organization: Emacs Helm Message-ID: <87iofkdcgj.fsf@gmail.com> References: <68eca5a1-04b6-462a-bf70-4abb02b72460@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422860488 12477 80.91.229.3 (2 Feb 2015 07:01:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 07:01:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 08:01:24 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YIB0e-0008L1-79 for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 08:01:24 +0100 Original-Received: from localhost ([::1]:53262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIB0d-0005V8-8X for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 02:01:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIB0Z-0005Uy-Ca for emacs-devel@gnu.org; Mon, 02 Feb 2015 02:01:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIB0V-0007jp-DY for emacs-devel@gnu.org; Mon, 02 Feb 2015 02:01:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIB0V-0007hJ-7M for emacs-devel@gnu.org; Mon, 02 Feb 2015 02:01:15 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YIB0S-0008CR-9q for emacs-devel@gnu.org; Mon, 02 Feb 2015 08:01:12 +0100 Original-Received: from 37.160.25.76 ([37.160.25.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2015 08:01:12 +0100 Original-Received: from thierry.volpiatto by 37.160.25.76 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Feb 2015 08:01:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.160.25.76 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux) Cancel-Lock: sha1:xMMZtlQlfzc5fbog6yAqWCEnSVU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182233 Archived-At: Artur Malabarba writes: > I'd like something repeatable, like C-; or C-M-; but I'm also > receptive of Drew's suggestion of C-x C-; In helm we have a macro that allow binding a key like this: (helm-define-key-with-subkeys global-map (kbd "C-c M-;") ?\; #'comment-line) This allow hitting `C-c M-;' on your first line and then hitting only `;' to call the same command. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997