Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Phred (5358)

Phred
  fredNO@SPAMtaperfriendlymusic.org
http://www.redhotpenguin.com/

Fred is a Perl and PostgreSQL geek. He has made some very small contributions to a few cpan modules and mod_perl.

Journal of Phred (5358)

Monday February 05, 2007
10:57 PM

Emacs autocomplete w/perl

[ #32324 ]

Been hacking on emacs more lately, my latest trick is auto-completion. I started here at Richard Rodger's page on autocompletion, and added the following lisp:

; load the autocompletion wordlist on startup
(setq perl-wordlist-default-file "~/.vim/wordlists/perl.list")
(setq auto-load-wordlist 't)
(if auto-load-wordlist
      (find-file-noselect perl-wordlist-default-file 'NOWARN)
)

; use this plugin in cperl-mode
(add-hook 'cperl-mode-hook
          '(lambda ()
             (local-set-key "\C-i"     'my-tab)))

I used the word list from my vim ide, but I think I will go one step further and generate a wordlist from the codebases I work on to make it complete. It's been working well so far.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • is if you did something similar to komodo and analysed all your perl, looking for function signatures, or even examples from synopsis.
    --

    @JAPH = qw(Hacker Perl Another Just);
    print reverse @JAPH;