Remove dead config
This commit is contained in:
parent
262c2d96b0
commit
8bf9543e2a
6 changed files with 30 additions and 44 deletions
|
|
@ -12,18 +12,21 @@
|
|||
"Setup editor for Ruby."
|
||||
|
||||
;; Indentation and line length
|
||||
(if (string-match-p "internetee/" (buffer-file-name))
|
||||
(if (string-match-p "internetee" (buffer-file-name))
|
||||
(set-width-100)
|
||||
(set-width-80))
|
||||
|
||||
;; Set default indentation
|
||||
(set-indent 2)
|
||||
(setq ruby-deep-indent-paren nil)
|
||||
|
||||
;; 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)
|
||||
;; (setq ruby-deep-indent-paren nil)
|
||||
|
||||
;; Automatically insert second pair of <%
|
||||
(define-key web-mode-map "<%" 'electric-pair)
|
||||
|
||||
;; Do not insert encoding comments
|
||||
(setq ruby-insert-encoding-magic-comment nil))
|
||||
|
|
@ -64,7 +67,7 @@
|
|||
(add-hook 'ruby-mode-hook 'minitest-ruby-mode-config)
|
||||
|
||||
;; Use longer lines for HAML
|
||||
(add-hook 'haml-mode-hook 'set-width-120)
|
||||
(add-hook 'haml-mode-hook 'set-width-100)
|
||||
|
||||
(provide 'ruby)
|
||||
;;; ruby.el ends here
|
||||
|
|
|
|||
|
|
@ -8,15 +8,18 @@
|
|||
"Editor configuration for Web."
|
||||
(set-width-120)
|
||||
|
||||
(if (string-match-p "internetee/" (buffer-file-name))
|
||||
((set-indent 4)
|
||||
(setq web-mode-markup-indent-offset 4)
|
||||
(setq web-mode-code-indent-offset 4)
|
||||
(setq css-indent-offset 4))
|
||||
((set-indent 2)
|
||||
(setq web-mode-markup-indent-offset 2)
|
||||
(setq web-mode-code-indent-offset 2)
|
||||
(setq css-indent-offset 2))))
|
||||
(if (string-match-p "internetee" (buffer-file-name))
|
||||
((lambda
|
||||
((set-indent 4)
|
||||
(setq web-mode-markup-indent-offset 4)
|
||||
(setq web-mode-code-indent-offset 4)
|
||||
(setq css-indent-offset 4)))
|
||||
((set-indent 2)
|
||||
(setq web-mode-markup-indent-offset 2)
|
||||
(setq web-mode-code-indent-offset 2)
|
||||
(setq css-indent-offset 2)))
|
||||
|
||||
(define-key web-mode-map "<%" 'electric-pair)))
|
||||
|
||||
;;========== Code completion =======================
|
||||
(defun completion-config-web ()
|
||||
|
|
@ -26,7 +29,7 @@
|
|||
(flymake-mode)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((company-capf company-dabbrev-code company-yasnippet
|
||||
company-files))))
|
||||
company-files))))
|
||||
|
||||
;;========== Hooks =================================
|
||||
;; Use web-mode for erb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue