From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: customizable org-attach commands? Date: Wed, 13 Jun 2018 10:28:36 -0700 Message-ID: <87zhzyh9yz.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT9cZ-00065p-OT for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 13:31:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT9cT-00085q-Lg for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 13:31:46 -0400 Received: from [195.159.176.226] (port=45919 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT9cT-0007yK-BT for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 13:31:41 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fT9aJ-0000c9-CE for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 19:29:27 +0200 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" To: emacs-orgmode@gnu.org I'd like to provide a patch making the org-attach dispatcher customizable. ie a new custom option `org-attach-commands' that maps characters to functions, and then the dispatch function builds its menu from that option. Would that be acceptable? What I'm trying to do is add my own org-attach function that prompts for a file and then attaches it to an outgoing Gnus message buffer. Another org-attach thing I'd like to do is add a way to export a subtree as a file into the subtree's attach directory, but I haven't come up with a good way of doing that yet. One way would be to add an option to the export dispatcher, which seems awkward. Another way would be to allow a property like ":EXPORT_FILE_NAME: :ATTACH_DIR", and look for that in `org-export-output-file-name'. But that will require a little more thought. Eric