mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add /** and */ smartparens pair
This commit is contained in:
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user