From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge Araya Navarro Newsgroups: gmane.emacs.help 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 10:43:00 -0600 Message-ID: <1395247380.2118.4.camel@localhost.localdomain> References: <20140318181016.267860@gmx.com> <874n2uy6bj.fsf@yun.yagibdah.de> Reply-To: elcorreo@deshackra.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1395371854 15691 80.91.229.3 (21 Mar 2014 03:17:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2014 03:17:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 04:17:44 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQpxo-00077c-6C for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2014 04:17:44 +0100 Original-Received: from localhost ([::1]:50510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQpxn-0003Nv-Ny for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 23:17:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQpxY-0003Nj-BQ for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 23:17:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQpxT-0005Mu-0m for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 23:17:28 -0400 Original-Received: from [188.165.91.212] (port=37700 helo=shared.dohost.us) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQpxS-0005Mo-NX for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 23:17:22 -0400 Original-Received: from [186.32.192.206] (port=35285 helo=[192.168.0.199]) by shared.dohost.biz with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1WQJdk-0005Hx-R1 for help-gnu-emacs@gnu.org; Wed, 19 Mar 2014 16:46:53 +0000 In-Reply-To: <874n2uy6bj.fsf@yun.yagibdah.de> X-Mailer: Evolution 3.10.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shared.dohost.us X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - deshackra.com X-Get-Message-Sender-Via: shared.dohost.us: authenticated_id: elcorreo@deshackra.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 188.165.91.212 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96654 Archived-At: Well, I'm using those packages from MELPA. auto-complete (20140314.802), auto-indent (20131220) and yasnippet (20140314.255) and yasnippet-bundle (0.6.1) running on GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen -- Pax et bonum. Jorge Araya Navarro. Diseñador publicitario, programador Python/C++ y colaborador en Parabola GNU/Linux-libre. El mié, 19-03-2014 a las 08:51 +0100, lee escribió: > "Jorge Araya Navarro" 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) > >