emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: RFI -- Which completion system?
Date: Fri, 22 Oct 2010 11:24:35 +0100	[thread overview]
Message-ID: <87fwvyv82k.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <80d3r3457g.fsf@mundaneum.com>

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

On Thu, 21 Oct 2010 23:16:19 +0200, Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
> 
> Hello,
> 
> Before spending a lot of time trying to choose for the "best" completion
> mechanism inside Emacs (and sticking to it), setting it up all the way
> through, I wanted to know if you had had:
> 
> - particularly good or bad experiences with one of the "standard" ones?

I've tried a number over the years.  I've yet to reach a situation
where I am particularly happy with any of them but the one that seems
to work best *for me* so far is hippie.

I have the following settings (having just added Tassilo's expansion
function for calc which is brilliant!):

--8<---------------cut here---------------start------------->8---
(setq hippie-expand-try-functions-list
      '(;;yas/hippie-try-expand
	th/my-try-complete-with-calc-result
        try-expand-all-abbrevs
	try-expand-dabbrev
        try-expand-dabbrev-all-buffers
        try-expand-dabbrev-from-kill
        try-complete-file-name
        try-complete-lisp-symbol))
--8<---------------cut here---------------end--------------->8---

I no longer use yasnippets as they interfered too much with completion
in general.  

I have bound hippie-expand to C-; as I find this a lot easier to type
than M-/.  I also have TAB bound to the following:

--8<---------------cut here---------------start------------->8---
(defun esf/indent-or-expand (arg)
  "Either indent according to mode, or expand the word preceding point."
  (interactive "*P")
  (if (and
       (or (bobp) (= ?w (char-syntax (char-before))))
       (or (eobp) (not (= ?w (char-syntax (char-after))))))
      ;;(dabbrev-expand arg)
      (hippie-expand arg)
    (indent-according-to-mode)))
--8<---------------cut here---------------end--------------->8---

in most text buffers.  This means that TAB no longer does what it
should in org mode but I use C-i for that functionality as most of the
time I am typing text and not moving things around.

HTH,
eric

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      parent reply	other threads:[~2010-10-22 10:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 21:16 RFI -- Which completion system? Sébastien Vauban
2010-10-22  7:48 ` Tassilo Horn
2010-10-22 10:24 ` Eric S Fraga [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=87fwvyv82k.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.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).