From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: comment org code block Date: Sat, 27 Jun 2015 07:32:45 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oLv-0006tr-AK for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 07:32:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8oLq-0003t3-AH for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 07:32:55 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:36391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oLq-0003sw-5i for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 07:32:50 -0400 Received: by qgal13 with SMTP id l13so42003366qga.3 for ; Sat, 27 Jun 2015 04:32:49 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xebar Saram Cc: org mode This seems to work for some toy examples: (defun comment-org-in-src-block () (interactive) (org-edit-special) (comment-dwim nil) (org-edit-src-exit)) Xebar Saram writes: > Hi all > > i was wondering if anyone knew of a command or bind to quickly comment the > entire content of an org code block (with the correct comment syntax)? > > thx! > > Z -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu