From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Inserting property drawers and comments Date: Tue, 09 Dec 2014 16:14:22 -0500 Message-ID: <87vblkr0ep.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyS77-0005Fg-Aj for Emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:14:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyS6z-0004MH-Re for Emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:14:33 -0500 Received: from mail-qa0-f52.google.com ([209.85.216.52]:60049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyS6z-0004M2-Oz for Emacs-orgmode@gnu.org; Tue, 09 Dec 2014 16:14:25 -0500 Received: by mail-qa0-f52.google.com with SMTP id dc16so1078925qab.11 for ; Tue, 09 Dec 2014 13:14:24 -0800 (PST) In-Reply-To: (RCY's message of "Tue, 9 Dec 2014 15:40:21 -0500") 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: RCY Cc: Emacs-orgmode@gnu.org RCY wrote: > I can insert a property drawer using the 'C-u C-c C-x d' key > sequence. Is there a way to do so by directly calling the > org-insert-property-drawer function? I get a 'Wrong type argument: > commandp, org-insert-property drawer error' when I try to call it > using a shortcut command. It's not an interactive function. If you prefer to bind it directly to a key, you can wrap it in a command and then bind that to a key. (defun my/org-insert-property-draw () (interactive) (org-insert-property-drawer)) -- Kyle