From e1cde25da603196852bf949cec95979163175a51 Mon Sep 17 00:00:00 2001 From: bb2020 Date: Sat, 18 May 2019 22:40:39 +0300 Subject: [PATCH] Add bindings for `goto-last-change` and `check-parens` --- CHANGELOG.develop | 5 ++++- doc/DOCUMENTATION.org | 1 + layers/+spacemacs/spacemacs-defaults/keybindings.el | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 88e4cd287..76e76f465 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -984,6 +984,9 @@ Other: - =spacemacs-theme-comment-bg= - =spacemacs-theme-org-height= (thanks to Dominik Schrempf) + - Key bindings (thanks to bb2020) + - ~SPC-j-C~ to =check-parens= + - ~SPC-,~ to =goto-last-change= *** Layer changes and fixes **** Alda - Key bindings: @@ -1928,6 +1931,7 @@ Other: - Replace ox-reveal with org-re-reveal (thanks to Magnus Therning) - Added epub support (thanks to vishvanath45) - Added support for CUSTOM_ID in latex exports (thanks to Compro-Prasad) +- Added ~SPC m i L~ as =org-cliplink= into =org= layer (thanks to bb2020) **** Osx - Fixed OSX mapping issue (thanks to Joey Liu) - Added layer variables to customize modifier behaviors on macOS: @@ -2185,7 +2189,6 @@ Other: - Moved =eshell-z-freq-dir-hash-table-file-name= into cache dir (thanks to bb2020) - Enabled ~TAB~ completion in =eshell= with =Helm= (thanks to bb2020) -- Added ~SPC m i L~ as =org-cliplink= into =org= layer (thanks to bb2020) - Added =eshell= =Ivy= completion bindings (thanks to bb2020): - ~M-l~ =spacemacs/ivy-eshell-history= - ~TAB~ =spacemacs/pcomplete-std-complete= diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index f6811439e..d63147da8 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -2143,6 +2143,7 @@ The ~SPC j~ prefix is for jumping, joining and splitting. | ~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 6c020acf5..ce2247590 100644 --- a/layers/+spacemacs/spacemacs-defaults/keybindings.el +++ b/layers/+spacemacs/spacemacs-defaults/keybindings.el @@ -132,6 +132,8 @@ 'universal-argument-more)) ;; shell command ------------------------------------------------------------- (spacemacs/set-leader-keys "!" 'shell-command) +;; last change --------------------------------------------------------------- +(spacemacs/set-leader-keys "," 'goto-last-change) ;; applications --------------------------------------------------------------- (spacemacs/set-leader-keys "ac" 'calc-dispatch @@ -287,6 +289,7 @@ ;; format --------------------------------------------------------------------- (spacemacs/set-leader-keys "jo" 'open-line + "jC" 'check-parens "j=" 'spacemacs/indent-region-or-buffer "jS" 'spacemacs/split-and-new-line "jk" 'spacemacs/evil-goto-next-line-and-indent)