auto-complete in emacs

  • Follow


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

0
Reply h.dunnil (12) 2/5/2006 7:30:46 PM


0 Replies
177 Views

(page loaded in 0.097 seconds)

Similiar Articles:










7/27/2012 10:00:35 PM


Reply: