Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 3.58 KB
;ELC
;;; Compiled by lucashungaro@IronMan on Fri Jan 7 02:38:22 2011
;;; from file /Users/lucashungaro/.emacs.d/starter-kit-ruby.el
;;; in Emacs version 23.2.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301\302\"\210\303\304\305\"\210\306\307\310\"\210\306\307\311\"\210\306\307\312\"\210\306\307\313\"\210\306\307\314\"\210\306\307\315\"\210\306\307\316\"\210\306\317\320\"\207" [eval-after-load ruby-mode (progn (ignore-errors (require 'ruby-compilation)) (setq ruby-use-encoding-map nil) (add-hook 'ruby-mode-hook 'inf-ruby-keys) (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent) (define-key ruby-mode-map (kbd "C-M-h") 'backward-kill-word) (define-key ruby-mode-map (kbd "C-c l") "lambda")) global-set-key "r" ri add-to-list auto-mode-alist ("\\.rake$" . ruby-mode) ("\\.gemspec$" . ruby-mode) ("\\.ru$" . ruby-mode) ("Rakefile$" . ruby-mode) ("Gemfile$" . ruby-mode) ("Capfile$" . ruby-mode) ("Vagrantfile$" . ruby-mode) completion-ignored-extensions ".rbc"] 3)
#@41 Completion rules for the `ssh' command.
(defalias 'pcomplete/rake #[nil "\300\301 !\207" [pcomplete-here pcmpl-rake-tasks] 2 (#$ . 1330)])
#@173 Return a list of all the rake tasks defined in the current
projects. I know this is a hack to put all the logic in the
exec-to-string command, but it works and seems fast
(defalias 'pcmpl-rake-tasks #[nil "\300\301\302\303\304\305\306!\307\"\"\"\207" [delq nil mapcar #[(line) "\301\302\"\205 \303\304\"\207" [line string-match "rake \\([^ ]+\\)" match-string 1] 3] split-string shell-command-to-string "rake -T" "[\n]"] 7 (#$ . 1476)])
(defalias 'rake #[(task) "\301\302G\303U\203 \304\202P!\207" [task shell-command-to-string "rake " 0 "default"] 4 nil (list (completing-read "Rake (default: default): " (pcmpl-rake-tasks)))])
(byte-code "\300\301\302\"\210\303\304\305\"\207" [eval-after-load ruby-compilation (progn (defadvice ruby-do-run-w/compilation (before kill-buffer (name cmdlist)) (let ((comp-buffer-name (format "*%s*" name))) (when (get-buffer comp-buffer-name) (with-current-buffer comp-buffer-name (delete-region (point-min) (point-max)))))) (ad-activate 'ruby-do-run-w/compilation)) add-hook ruby-mode-hook run-coding-hook] 3)
(defalias 'flymake-ruby-init #[nil "\303\304!\305\306 !\"\307\310\n*DD\207" [temp-file buffer-file-name local-file flymake-init-create-temp-buffer-copy flymake-create-temp-inplace file-relative-name file-name-directory "ruby" "-c"] 4])
(defalias 'flymake-ruby-enable #[nil "\205.\301\302!!\205.\301!\205.\303\304!\203\"\305pC\304 \"?\202#\306\205.\307\310\311\"\210\312\306!\207" [buffer-file-name file-writable-p file-name-directory fboundp tramp-list-remote-buffers subsetp t local-set-key "d" flymake-display-err-menu-for-current-line flymake-mode] 3])
(byte-code "\301\302\303\"\210\304\305\306\307\310\311\257\312\313!\207" [rinari-major-modes eval-after-load ruby-mode (progn (require 'flymake) (push '(".+\\.rb$" flymake-ruby-init) flymake-allowed-file-name-masks) (push '("Rakefile$" flymake-ruby-init) flymake-allowed-file-name-masks) (push '("^\\(.*\\):\\([0-9]+\\): \\(.*\\)$" 1 2 nil 3) flymake-err-line-patterns) (add-hook 'ruby-mode-hook 'flymake-ruby-enable)) mumamo-after-change-major-mode-hook dired-mode-hook ruby-mode-hook css-mode-hook yaml-mode-hook javascript-mode-hook provide starter-kit-ruby] 6)