mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
31 lines
721 B
EmacsLisp
31 lines
721 B
EmacsLisp
;;; siren-smartparens.el --- jimeh's Emacs Siren: smartparens configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for smartparens.
|
|
|
|
;;; Code:
|
|
|
|
(siren-require-packages '(smartparens))
|
|
|
|
;; smart pairing for all
|
|
(require 'smartparens-config)
|
|
(setq sp-base-key-bindings 'paredit)
|
|
(setq sp-autoskip-closing-pair 'always)
|
|
(setq sp-hybrid-kill-entire-symbol nil)
|
|
(custom-set-faces
|
|
'(sp-pair-overlay-face ((t (:inherit nil)))))
|
|
|
|
(sp-pair "{" nil :post-handlers
|
|
'(((lambda (&rest _ignored)
|
|
(siren-smart-open-line-above)) "RET")))
|
|
|
|
(show-smartparens-global-mode +1)
|
|
(diminish 'smartparens-mode)
|
|
|
|
;; Aliases
|
|
(defalias 'rw 'sp-rewrap-sexp)
|
|
|
|
(provide 'siren-smartparens)
|
|
;;; siren-smartparens.el ends here
|