smartparens: Add copy/kill of expression keybindings

This commit is contained in:
laurensmiers 2019-09-09 09:28:43 +02:00
parent 831031aa3a
commit 597e00a584

View file

@ -510,6 +510,9 @@ https://github.com/Fuco1/smartparens
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package smartparens (use-package smartparens
:ensure t :ensure t
:bind
("C-M-k" . sp-kill-sexp)
("C-M-w" . sp-copy-sexp)
:config :config
(require 'smartparens-config) (require 'smartparens-config)
(show-smartparens-global-mode t) (show-smartparens-global-mode t)
@ -566,7 +569,7 @@ https://github.com/Fuco1/smartparens
;; (define-key smartparens-mode-map (kbd "C-M-b") 'sp-backward-sexp) ;; (define-key smartparens-mode-map (kbd "C-M-b") 'sp-backward-sexp)
;; ;;
;; ;; TODO: in manjaro this selects keyboard-layout or something ;; ;; TODO: in manjaro this selects keyboard-layout or something
;; ;;(define-key smartparens-mode-map (kbd "C-M-k") 'sp-kill-sexp) ;; (define-key smartparens-mode-map (kbd "C-M-k") 'sp-kill-sexp)
;; (define-key smartparens-mode-map (kbd "C-M-w") 'sp-copy-sexp) ;; (define-key smartparens-mode-map (kbd "C-M-w") 'sp-copy-sexp)
;; ;;
;; (define-key smartparens-mode-map (kbd "C-M-n") 'sp-next-sexp) ;; (define-key smartparens-mode-map (kbd "C-M-n") 'sp-next-sexp)