From 8f991e33f23138547ddcee2d1f17b244218c4679 Mon Sep 17 00:00:00 2001 From: Fredrik Bergroth Date: Fri, 8 Jan 2016 15:37:39 +0100 Subject: [PATCH] Add keybinding for sh-backslash-region --- layers/+lang/shell-scripts/README.org | 5 ++++- layers/+lang/shell-scripts/packages.el | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/layers/+lang/shell-scripts/README.org b/layers/+lang/shell-scripts/README.org index 427028526..3ca3ea8e7 100644 --- a/layers/+lang/shell-scripts/README.org +++ b/layers/+lang/shell-scripts/README.org @@ -25,4 +25,7 @@ file. * Key Bindings -None for now. +| Key Binding | Description | +|-------------+-----------------------------------------------------------| +| ~SPC m \~ | insert end-of-line backslashes to the lines in the region | + diff --git a/layers/+lang/shell-scripts/packages.el b/layers/+lang/shell-scripts/packages.el index 7212d6d27..26bf68d6b 100644 --- a/layers/+lang/shell-scripts/packages.el +++ b/layers/+lang/shell-scripts/packages.el @@ -23,6 +23,9 @@ :defer t :init (progn + (spacemacs/set-leader-keys-for-major-mode 'sh-mode + "\\" 'sh-backslash-region) + ;; Use sh-mode when opening `.zsh' files, and when opening Prezto runcoms. (dolist (pattern '("\\.zsh\\'" "zlogin\\'"