emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "darcamo@gmail.com" <darcamo@gmail.com>
To: Matt Price <moptop99@gmail.com>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: change completion function in a headline in a minor mode
Date: Fri, 17 Jul 2015 13:20:24 +0000	[thread overview]
Message-ID: <CAGjSdXqiv=toWGMn0-hmp0ktQ2z9nyz_1+Yjg3++LtCzQZKg_Q@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec9pkw7wJo4nq6d2GJQBpaO++MH70YAcVfgexWi3qK5Jtg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

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 <moptop99@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 1425 bytes --]

      reply	other threads:[~2015-07-17 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17  2:51 change completion function in a headline in a minor mode Matt Price
2015-07-17 13:20 ` darcamo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGjSdXqiv=toWGMn0-hmp0ktQ2z9nyz_1+Yjg3++LtCzQZKg_Q@mail.gmail.com' \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).