开发者

what are the code completetion systems available for emacs core (23.3 or 24)?

开发者 https://www.devze.com 2023-03-17 09:20 出处:网络
I use auto-completion mode which is not inbuilt. good but not the best IMO. So I was wondering is there inbuilt generic plugins for completion in emacs like you see in IDEs.

I use auto-completion mode which is not inbuilt. good but not the best IMO. So I was wondering is there inbuilt generic plugins for completion in emacs like you see in IDEs.

to name,

dabbrev

hippie expansion

I think these two are different from auto-comp开发者_运维百科letion mode kind which I am looking for.

EDIT:

I like to extend one of any completion system to support a scripting language which I use regularly for scientific data visualization.


There is CEDET package in GNU Emacs starting from version 23, but it slightly outdated, and it's better to use CEDET from its repository. I have an article on setting and use CEDET from repository.

Why don't you want to use external packages? With new packaging system in GNU Emacs (package.el) and with things, like el-get, it's very easy to install new packages into GNU Emacs...


CEDET's autocompletion is the only drop-down completion package provided in core Emacs. The core in-place completion packages are hippie-expand and dabbrev.

The primary non-core packages which provide drop-down completion are auto-complete and company; the former appears to be the most popular these days.

There's also anything, which is an interactive completion package. While it doesn't provide drop-down completion at the cursor position, the way it works is really rather nice, so it's worth investigating.

With a bit of tweaking, dabbrev and hippie-expand can be a lot more effective than you might expect, but if you want something more visual and interactive, my advice is to look beyond the core packages and go for auto-complete or perhaps anything.

(For what it's worth, I use both hippie-expand and auto-complete myself.)


As a C programmer I tried http://cx4a.org/software/gccsense. I read an interview where the CEDET author said that this is actually better because it hooks directly into gcc. However its quite a hassle to install gccsense because I had to compile a modified gcc. Once this package is included in distributions I would use it.


You may also want to try out predictive mode. While not exactly a code completion package, it comes close to it by predicting your frequently used words, which in a coding platform is definitely a limited vocabulary.

http://www.dr-qubit.org/emacs.php

The emacs wiki has a good explanation too.

http://www.emacswiki.org/emacs/PredictiveMode

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号