all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "dunnil" <h.dunnil@gmail.com>
Subject: auto-complete
Date: 5 Feb 2006 15:14:20 -0800	[thread overview]
Message-ID: <1139181260.494147.82670@z14g2000cwz.googlegroups.com> (raw)

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) 
            ))

             reply	other threads:[~2006-02-05 23:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05 23:14 dunnil [this message]
2006-02-06  4:16 ` auto-complete Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2011-04-13 23:35 auto-complete daniele.g
2011-04-26  7:01 ` auto-complete Bernardo
2011-04-26 17:26 ` auto-complete Andrea Crotti
2011-04-26 18:07   ` auto-complete daniele.g
2011-04-26 18:41 auto-complete Andrea Crotti
2015-10-04 20:12 auto-complete Haris Bogdanović
2015-10-06  1:24 ` auto-complete Dmitry Gutov
2015-10-06  1:30 ` auto-complete Emanuel Berg
2015-10-15 20:24 auto-complete haris.bogdanovic
2015-10-15 20:36 ` auto-complete Jai Dayal
2015-11-10 21:03 auto-complete haris.bogdanovic
2015-11-11  0:56 ` auto-complete John Mastro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1139181260.494147.82670@z14g2000cwz.googlegroups.com \
    --to=h.dunnil@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.