mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
added Rsense package for ruby development, and tweaked auto-complete settings slightly
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(ac-auto-show-menu 0.2)
|
||||
'(ac-delay 0.05)
|
||||
'(ac-menu-height 15)
|
||||
'(ack-arguments (quote ("--ignore-dir=vendor/ruby" "--ignore-dir=vendor/bundle" "--ignore-dir=coverage" "--ignore-dir=docs" "--ignore-dir=doc")))
|
||||
'(ack-project-root-file-patterns (quote (".project\\'" ".xcodeproj\\'" ".sln\\'" "\\`Project.ede\\'" "\\`.git\\'" "\\`.bzr\\'" "\\`_darcs\\'" "\\`.hg\\'" "\\`Gemfile\\'" "\\`Rakefile\\'")))
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
(flyspell-prog-mode)
|
||||
(ruby-electric-mode t)
|
||||
(linum-mode t)
|
||||
(when (require 'rsense nil 'noerror)
|
||||
(add-to-list 'ac-sources 'ac-source-rsense-method)
|
||||
(add-to-list 'ac-sources 'ac-source-rsense-constant))
|
||||
(setq ruby-deep-arglist t)
|
||||
(setq ruby-deep-indent-paren nil)
|
||||
(setq c-tab-always-indent nil)
|
||||
@@ -31,6 +34,8 @@
|
||||
(kbd "RET") 'reindent-then-newline-and-indent)
|
||||
(define-key ruby-mode-map
|
||||
(kbd "s-r") 'ruby-compilation-this-buffer)
|
||||
(define-key ruby-mode-map
|
||||
(kbd "C-c .") 'ac-complete-rsense)
|
||||
(define-key ruby-mode-map
|
||||
(kbd "C-x t") 'textmate-goto-file)
|
||||
(define-key ruby-mode-map
|
||||
|
||||
@@ -82,6 +82,14 @@
|
||||
(:name linum+
|
||||
:type http
|
||||
:url "http://dea.googlecode.com/svn/trunk/my-lisps/linum+.el")
|
||||
(:name rsense
|
||||
:type git
|
||||
:url "https://github.com/m2ym/rsense.git"
|
||||
:build ("ant" "chmod +x bin/rsense")
|
||||
:post-init (lambda ()
|
||||
(setq rsense-home (expand-file-name "~/.emacs.d/el-get/rsense"))
|
||||
(add-to-list 'load-path (concat rsense-home "/etc"))
|
||||
(require 'rsense)))
|
||||
(:name ruby-mode
|
||||
:type svn
|
||||
:url "http://svn.ruby-lang.org/repos/ruby/trunk/misc/")
|
||||
|
||||
Reference in New Issue
Block a user