Add all the require files

This commit is contained in:
Maciej Szlosarczyk 2017-02-08 09:03:50 +02:00
parent d173f5e3f3
commit d4eef54f00
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
7 changed files with 509 additions and 0 deletions

23
ruby.el Normal file
View 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)