Skip to content

Commit

Permalink
added: my-create-newline-and-enter-sexp accept modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncaq committed May 12, 2015
1 parent c444a59 commit 84bcaa8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion profile/20_smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
(indent-according-to-mode)
)

(sp-local-pair '(c-mode c++-mode objc-mode java-mode) "{" nil :post-handlers '((my-create-newline-and-enter-sexp "RET")))
(sp-local-pair '(
c++-mode
c-mode
css-mode
d-mode
java-mode
js-mode
objc-mode
) "{" nil :post-handlers '((my-create-newline-and-enter-sexp "RET")))

(define-key smartparens-mode-map (kbd "C-(") 'sp-backward-slurp-sexp)
(define-key smartparens-mode-map (kbd "C-)") 'sp-slurp-hybrid-sexp)
Expand Down
Binary file modified profile/20_smartparens.elc
Binary file not shown.

0 comments on commit 84bcaa8

Please sign in to comment.