Re: emacs c++ code completion help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Armin Moradi wrote:
On Tue, May 26, 2009 at 9:43 PM, Armin Moradi <amoradi@xxxxxxxxxxxxxxxxx> wrote:
On Tue, May 26, 2009 at 6:38 PM, Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
Armin Moradi wrote:
Here we go, I got it working:
Download these files:
auto-complete.el
auto-complete-cpp.el
auto-complete-gtags.el
auto-complete-semantic.el
auto-complete-yasnippet.el

put them in a directory, let's say ~/.emacs.d/elisp/

then add this to your ~/.emacs file:

====================
(add-to-list 'load-path "~/.emacs.d/elisp")
(require 'auto-complete)
(global-auto-complete-mode)
====================

It worked for me, but let me know if it worked for you too! �(the
auto-completion is really nice btw!)

I couldn't get it to auto-complete C++ keywords _not_ present in the buffer.
So I changed my auto-complete-cpp.el (attached below). I made some minor
changes to an example code posted on the emacs wiki page to include
auto-complete both from the current buffer and from a list of keywords
defined in auto-complete-cpp.el.

Now my .emacs looks like this,

;; load path for elisp files
(add-to-list 'load-path "~/.emacs.d/elisp")

;; autocomplete extension
(require 'auto-complete)
(when (require 'auto-complete nil t)
�(require 'auto-complete-cpp)

�(global-auto-complete-mode))

--
Suvayu

Open source is the future. It sets us free.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

That didn't help the dot(.) problem. �But thanks nevertheless.

--
Armin Moradi


When I try to install the development version of auto-complete using
auto-install, it gives me several errors on missing files:

auto-complete-ruby.el -> Cannot open rcodetools
auto-complete-semantic -> Cannot open semantic-ia
auto-complete-yasnippet -> Cannot open yasnippet

Where can I find those files?


I believe they are available on the Autocomplete wiki page[1]. I haven't tried auto-install yet, So can't say these will fix it. But auto-install.el is supposed to pull in all the *.el files that are required by auto-complete.el. And since the stable version of auto-install.el was released early this May[2], there is a chance you might have hit a bug. Worth checking imo.

[1]http://www.emacswiki.org/emacs/AutoComplete#toc2
[2]http://lists.gnu.org/archive/html/help-gnu-emacs/2009-05/msg00370.html

--
Suvayu

Open source is the future. It sets us free.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux