Add /** and */ smartparens pair

This commit is contained in:
Henrik Lissner 2015-05-05 21:14:37 -04:00
parent 36da5e44ad
commit 02291c1b8d
2 changed files with 3 additions and 5 deletions

View file

@ -30,10 +30,12 @@
(sp-with-modes '(json-mode js2-mode ruby-mode enh-ruby-mode python-mode) (sp-with-modes '(json-mode js2-mode ruby-mode enh-ruby-mode python-mode)
(sp-local-pair "[" nil :post-handlers '(("||\n[i]" "RET")))) (sp-local-pair "[" nil :post-handlers '(("||\n[i]" "RET"))))
(sp-with-modes '(java-mode c++-mode c-mode)
(sp-local-pair "/**" "*/" :post-handlers '(("* ||\n[i]" "RET"))))
(after "yasnippet" (after "yasnippet"
(defadvice yas-expand (before advice-for-yas-expand activate) (defadvice yas-expand (before advice-for-yas-expand activate)
(sp-remove-active-pair-overlay))))) (sp-remove-active-pair-overlay)))))
(provide 'core-editor) (provide 'core-editor)
;;; core-editor.el ends here ;;; core-editor.el ends here

View file

@ -34,9 +34,5 @@
:mode "\\.gradle$" :mode "\\.gradle$"
:config (after "auto-complete" (add-to-list 'ac-modes 'groovy-mode))) :config (after "auto-complete" (add-to-list 'ac-modes 'groovy-mode)))
(sp-with-modes '(java-mode)
(sp-local-pair "/**" "*/" :post-handlers '(("* ||\n[i]" "RET"))))
(provide 'init-java) (provide 'init-java)
;;; init-java.el ends here ;;; init-java.el ends here