From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "dunnil" Newsgroups: gmane.emacs.help Subject: auto-complete Date: 5 Feb 2006 15:14:20 -0800 Organization: http://groups.google.com Message-ID: <1139181260.494147.82670@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1139181440 19329 80.91.229.2 (5 Feb 2006 23:17:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2006 23:17:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 00:17:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F5t86-0001rp-Um for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Feb 2006 00:17:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F5tBN-0006Vz-Gc for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Feb 2006 18:20:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 217.219.250.5 Original-X-Trace: posting.google.com 1139181265 21055 127.0.0.1 (5 Feb 2006 23:14:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 5 Feb 2006 23:14:25 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.51,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=217.219.250.5; posting-account=-sRQ8wwAAABkaFO4xKy1FDSMWrgvBJ-o Original-Xref: shelby.stanford.edu gnu.emacs.help:137392 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33016 Archived-At: I've enabled auto-complete in emacs for ruby language, but it auto-complete everything, even files in the current directory, what may be the problem. yep, I'm a newbie to this golden but hard to reach land! Here is my .emacs file content: (autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t) (setq auto-mode-alist (cons '("\\.rb$" . ruby-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.rhtml$" . html-mode) auto-mode-alist)) (modify-coding-system-alist 'file "\\.rb$" 'utf-8-dos) (modify-coding-system-alist 'file "\\.rhtml$" 'utf-8-dos) (require 'rails) (add-hook 'ruby-mode-hook (lambda() (add-hook 'local-write-file-hooks '(lambda() (save-excursion (untabify (point-min) (point-max)) (delete-trailing-whitespace) ))) (set (make-local-variable 'indent-tabs-mode) 'nil) (set (make-local-variable 'tab-width) 2) (imenu-add-to-menubar "IMENU") (require 'ruby-electric) (ruby-electric-mode t) ))