Add all the require files
This commit is contained in:
parent
d173f5e3f3
commit
d4eef54f00
7 changed files with 509 additions and 0 deletions
23
ruby.el
Normal file
23
ruby.el
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
(add-hook 'ruby-mode-hook
|
||||
(aggressive-indent-mode))
|
||||
|
||||
(add-hook 'yaml-mode-hook
|
||||
(lambda () (indent-guide-mode -1)))
|
||||
|
||||
(add-hook 'sql-mode-hook
|
||||
(lambda () (indent-guide-mode -1)))
|
||||
|
||||
(defun align-to-colon (begin end)
|
||||
"Align region to colon (:) signs"
|
||||
(interactive "r")
|
||||
(align-regexp begin end
|
||||
(rx ":" (group (zero-or-more (syntax whitespace))) ) 1 1 ))
|
||||
|
||||
;; Do not align 'begin' and 'while' ;;
|
||||
(setq ruby-align-to-stmt-keywords '(if begin case elseif rescue))
|
||||
|
||||
;; Do not indent inside the parenthasis
|
||||
(setq ruby-deep-indent-paren nil)
|
||||
|
||||
;; Do not insert encoding comments ;;
|
||||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
Loading…
Add table
Add a link
Reference in a new issue