From 6ce974795e6083056a24508a1fad61fd6fd19f97 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Tue, 25 Jun 2019 23:49:21 -0400 Subject: [PATCH] Change `SPC j C` to `SPC j (` to jump to fist unbalanced parens --- CHANGELOG.develop | 2 +- doc/DOCUMENTATION.org | 2 +- layers/+spacemacs/spacemacs-defaults/keybindings.el | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index ab9350c0f..2416ce218 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -1009,7 +1009,7 @@ Other: - =spacemacs-theme-org-height= (thanks to Dominik Schrempf) - Key bindings (thanks to bb2020) - - ~SPC-j-C~ to =check-parens= + - ~SPC j (~ to =check-parens= - ~SPC-,~ to =goto-last-change= - Excluded =fundamental-mode= from =spacemacs/check-large-file= (thanks to Alexander Miller) diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index c9b582afb..ff458db0a 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -2150,10 +2150,10 @@ The ~SPC j~ prefix is for jumping, joining and splitting. | Key binding | Description | |-------------+-----------------------------------------------------------------------------------| | ~SPC j 0~ | go to the beginning of line (and set a mark at the previous location in the line) | +| ~SPC j (~ | jump to first unbalanced parentheses | | ~SPC j $~ | go to the end of line (and set a mark at the previous location in the line) | | ~SPC j b~ | undo a jump (go back to previous location) | | ~SPC j d~ | jump to a listing of the current directory | -| ~SPC j C~ | jump to first unbalanced parentheses | | ~SPC j D~ | jump to a listing of the current directory (other window) | | ~SPC j f~ | jump to the definition of an Emacs Lisp function | | ~SPC j i~ | jump to a definition in buffer (imenu) | diff --git a/layers/+spacemacs/spacemacs-defaults/keybindings.el b/layers/+spacemacs/spacemacs-defaults/keybindings.el index f3bdb1347..972d9aa5f 100644 --- a/layers/+spacemacs/spacemacs-defaults/keybindings.el +++ b/layers/+spacemacs/spacemacs-defaults/keybindings.el @@ -292,9 +292,9 @@ "ij" 'spacemacs/evil-insert-line-below) ;; format --------------------------------------------------------------------- (spacemacs/set-leader-keys - "jo" 'open-line - "jC" 'check-parens + "j(" 'check-parens "j=" 'spacemacs/indent-region-or-buffer + "jo" 'open-line "jS" 'spacemacs/split-and-new-line "jk" 'spacemacs/evil-goto-next-line-and-indent)