From mboxrd@z Thu Jan 1 00:00:00 1970 From: "darcamo@gmail.com" Subject: Re: change completion function in a headline in a minor mode Date: Fri, 17 Jul 2015 13:20:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11481e0a87af1e051b120d59 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5Z7-0006OC-AL for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 09:20:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG5Z5-0008K4-Ke for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 09:20:36 -0400 Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:36679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG5Z5-0008JT-HB for emacs-orgmode@gnu.org; Fri, 17 Jul 2015 09:20:35 -0400 Received: by ykay190 with SMTP id y190so89142218yka.3 for ; Fri, 17 Jul 2015 06:20:34 -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: Matt Price , Org Mode --001a11481e0a87af1e051b120d59 Content-Type: text/plain; charset=UTF-8 I don't know much lisp and Emacs completion framework details, but if you use company-mode there's a nice article explaining how to create a new company backend http://sixty-north.com/blog/writing-the-simplest-emacs-company-mode-backend There's also a second part improving the backend with extra information. -- Darlan Em qui, 16 de jul de 2015 23:52, Matt Price escreveu: > Hi, > > I am thinking of turning my marking stuff into a minor mode ( > http://matt.hackinghistory.ca/2015/07/15/mailing-subtrees-with-attachments/). > One feature that is missing from my current setup is a function that will > let me use org-contacts-complete-name to complete names when I'm in certain > headlines (level 2). Does anyone know how to do that? I don't understand > the completion framework in emacs, looks so complicated... > > Thanks as always, > m > --001a11481e0a87af1e051b120d59 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I don't know much lisp and Emacs completion framework de= tails, but if you use company-mode there's a nice article explaining ho= w to create a new company backend
http://sixty-north.com/blog/writing-the-simplest-emacs-company= -mode-backend

There's also a second part improving the backend with ex= tra information.

--
Darlan


Em qui, 16 de jul de 2015 2= 3:52, Matt Price <moptop99@gmail.c= om> escreveu:
Hi,

I am thinking of turning my marking stuf= f into a minor mode (http://matt.hackinghist= ory.ca/2015/07/15/mailing-subtrees-with-attachments/). One feature that= is missing from my current setup is a function that will let me use org-co= ntacts-complete-name to complete names when I'm in certain headlines (l= evel 2).=C2=A0 Does anyone know how to do that?=C2=A0 I don't understan= d the completion framework in emacs, looks so complicated...

= Thanks as always,
m
--001a11481e0a87af1e051b120d59--