From a83ea0b19f12345fb75bc419e7df22bc7791d81f Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Tue, 15 Aug 2017 17:54:00 +0200 Subject: [PATCH] Map jump to beginning and end of function + selecting whole function --- custom/setup-editing.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom/setup-editing.el b/custom/setup-editing.el index 8173ba7..d5a3e27 100644 --- a/custom/setup-editing.el +++ b/custom/setup-editing.el @@ -63,9 +63,11 @@ (define-key smartparens-mode-map (kbd "C-M-n") 'sp-next-sexp) (define-key smartparens-mode-map (kbd "C-M-p") 'sp-previous-sexp) -;; TODO: these don't work for some reason -(define-key smartparens-mode-map (kbd "C-M-d") 'sp-beginning-of-sexp) -(define-key smartparens-mode-map (kbd "C-M-a") 'sp-end-of-sexp) +;; TODO: this doesn't work for some reason +(define-key smartparens-mode-map (kbd "C-M-a") 'beginning-of-defun) +(define-key smartparens-mode-map (kbd "C-M-e") 'end-of-defun) + +(define-key smartparens-mode-map (kbd "C-M-h") 'mark-defun) (smartparens-global-mode t)