-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs-ruby.el
51 lines (33 loc) · 1.3 KB
/
emacs-ruby.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;;; emacs-ruby -- Pascal J. Bourguignon's emacs startup files.
;;; -*- mode:emacs-lisp;lexical-binding:t;coding:utf-8 -*-
;;; Commentary:
;;; Code:
(.EMACS "~/rc/emacs-ruby.el %s" "Pascal J. Bourguignon's emacs ruby stuff.")
(require 'ruby-mode)
(require 'inf-ruby)
(setf inf-ruby-first-prompt-pattern "irb --> ")
(setf inf-ruby-prompt-pattern (format inf-ruby-prompt-format "[?>]" "[\]>*\"'/`]"))
(require 'enh-ruby-mode nil t)
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t)
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode))
(add-to-list 'interpreter-mode-alist '("ruby" . enh-ruby-mode))
(require 'smartparens-config nil t)
(require 'smartparens-ruby nil t)
;; (smartparens-global-mode)
;; (show-smartparens-global-mode t)
;; (sp-with-modes '(rhtml-mode)
;; (sp-local-pair "<" ">")
;; (sp-local-pair ""))
(when (require 'highlight-indentation nil t)
(add-hook 'enh-ruby-mode-hook
(lambda () (highlight-indentation-current-column-mode)))
(add-hook 'coffee-mode-hook
(lambda () (highlight-indentation-current-column-mode))))
(when (require 'robe nil t)
(add-hook 'ruby-mode-hook 'robe-mode))
;; (require 'dash-at-point)
(require 'textmate nil t)
;; Local Variables:
;; coding: utf-8
;; eval: (flycheck-mode -1)
;; End: