Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经配置了 AutoComplete 来帮助我编写 Ruby 程序,但是在 irb 窗口中,它是关闭的。如何在随后的 Emacs 启动中打开它并保持这种状态?
放入您的配置中,例如:
(defun my-inf-ruby-mode-hook () (set (make-local-variable 'ac-auto-start) 2) (set (make-local-variable 'ac-auto-show-menu) t) ) (add-hook 'inf-ruby-mode-hook 'my-inf-ruby-mode-hook)
而且我认为,您还需要ac-sources在此挂钩中设置变量,因此它将使用 ruby 字典...
ac-sources