From: lee <lee@yun.yagibdah.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Do I have a correct configuration for auto-complete, auto-indent and yasnippet to use the tab key?
Date: Wed, 19 Mar 2014 08:51:28 +0100 [thread overview]
Message-ID: <874n2uy6bj.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <20140318181016.267860@gmx.com> (Jorge Araya Navarro's message of "Tue, 18 Mar 2014 14:10:15 -0400")
"Jorge Araya Navarro" <kartelo@gmx.com> writes:
> Hello!
>
> I am a happy user of GNU Emacs. So far I have a really good
> configuration on my Emacs, but I have the impression that
> auto-complete mode, auto-indent mode and yasnippet mode are not
> working together as they should to not enter into conflict when the
> tab key is pressed. For instance, when I'm writing python code, I
> usually press the tab key to auto complete the name of some variable,
> however, Emacs does nothing and if I press the key again it change the
> indentation, and if I press the tab key again, it changes the
> indentation again, and so on. If I write a word like the if statement
> yasnippet does nothing. This not happen for the for loop statement,
> and def statement though.
It would depend on which versions of auto-complete and yasnippet you`re
using. I had to install them from their repos on github because there
was an incompatibility. See
https://github.com/capitaomorte/yasnippet
https://github.com/auto-complete/auto-complete
Other than that, what your TAB key does would depend on what it`s bound
to. In my case, it`s bound to `yas-expand', probably because I have . It does what I think it
should. I`m still working on figuring out all the possibilities with
these modes, though.
;; yasnippet /w autocomplete
;;
(add-to-list 'load-path "~/emacs/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(add-to-list 'load-path "~/emacs/auto-complete")
(require 'auto-complete-config)
(ac-config-default)
(setq ac-menu-height 20)
--
Knowledge is volatile and fluid. Software is power.
next prev parent reply other threads:[~2014-03-19 7:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 18:10 Do I have a correct configuration for auto-complete, auto-indent and yasnippet to use the tab key? Jorge Araya Navarro
2014-03-19 7:51 ` lee [this message]
2014-03-19 16:43 ` Jorge Araya Navarro
2014-03-21 4:28 ` Dmitry Gutov
2014-03-21 9:04 ` Jorge Araya Navarro
2014-03-21 10:38 ` lee
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874n2uy6bj.fsf@yun.yagibdah.de \
--to=lee@yun.yagibdah.de \
--cc=help-gnu-emacs@gnu.org \
/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.
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).