config/default: move ruby sp rules
To group them with other major mode rules
This commit is contained in:
parent
9a17c909c9
commit
301a01182d
1 changed files with 5 additions and 5 deletions
|
@ -44,11 +44,6 @@
|
||||||
(sp-pair "'" nil :unless unless-list)
|
(sp-pair "'" nil :unless unless-list)
|
||||||
(sp-pair "\"" nil :unless unless-list))
|
(sp-pair "\"" nil :unless unless-list))
|
||||||
|
|
||||||
;; Major-mode specific fixes
|
|
||||||
(sp-local-pair '(ruby-mode enh-ruby-mode) "{" "}"
|
|
||||||
:pre-handlers '(:rem sp-ruby-pre-handler)
|
|
||||||
:post-handlers '(:rem sp-ruby-post-handler))
|
|
||||||
|
|
||||||
;; Expand {|} => { | }
|
;; Expand {|} => { | }
|
||||||
;; Expand {|} => {
|
;; Expand {|} => {
|
||||||
;; |
|
;; |
|
||||||
|
@ -59,6 +54,11 @@
|
||||||
;; I likely don't want a new pair if adjacent to a word or opening brace
|
;; I likely don't want a new pair if adjacent to a word or opening brace
|
||||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||||
|
|
||||||
|
;; Major-mode specific fixes
|
||||||
|
(sp-local-pair '(ruby-mode enh-ruby-mode) "{" "}"
|
||||||
|
:pre-handlers '(:rem sp-ruby-pre-handler)
|
||||||
|
:post-handlers '(:rem sp-ruby-post-handler))
|
||||||
|
|
||||||
;; Don't do square-bracket space-expansion where it doesn't make sense to
|
;; Don't do square-bracket space-expansion where it doesn't make sense to
|
||||||
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode gfm-mode)
|
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode gfm-mode)
|
||||||
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue