diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2024-02-04 17:42:01 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2024-02-04 17:42:01 -0300 |
| commit | 157ad725d226e2aa75253f6da002a2565a4208e0 (patch) | |
| tree | 8c479d89fdc7bef5e5530b6a0e987a7bf9e70a4a /configuration.el | |
| parent | b13b1145c2f0cbdd45ce1c5caa7294aaf8697385 (diff) | |
| download | MageMacs-157ad725d226e2aa75253f6da002a2565a4208e0.tar.gz MageMacs-157ad725d226e2aa75253f6da002a2565a4208e0.zip | |
smartparens config
Diffstat (limited to 'configuration.el')
| -rw-r--r-- | configuration.el | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/configuration.el b/configuration.el index 869be0b..5bec75d 100644 --- a/configuration.el +++ b/configuration.el @@ -32,11 +32,6 @@ :bind (("s-?" . 'magueta/lsp-ui-doc-toggle))) -(use-package rainbow-delimiters - :straight t - :hook - (emacs-lisp-mode . rainbow-delimiters-mode)) - (use-package nix-mode :straight t :init @@ -185,5 +180,31 @@ (use-package org-drill :straight t) +(use-package sly + :straight t + :hook ((sly-mode . corfu-mode))) + +(use-package rainbow-delimiters + :straight t + :hook + (lisp-mode . rainbow-delimiters-mode) + (emacs-lisp-mode . rainbow-delimiters-mode)) + +(use-package smartparens + :straight t + :hook ((lisp-mode . smartparens-mode) + (emacs-lisp-mode . smartparens-mode)) + :bind (:map smartparens-mode-map + ("C-M-<right>" . 'sp-forward-sexp) + ("C-M-<left>" . 'sp-backward-sexp) + ("C-M-<down>" . 'sp-down-sexp) + ("C-M-<up>" . 'sp-up-sexp) + ("C-k" . 'sp-kill-sexp) + ("M-w" . 'sp-copy-sexp) + ("C-M-s" . 'sp-forward-slurp-sexp) + ("C-S-s" . 'sp-backward-slurp-sexp) + ("C-M-b" . 'sp-forward-barf-sexp) + ("C-S-b" . 'sp-backward-barf-sexp))) + (provide 'configuration) ;;; configuration.el ends here |
