restclient: fix overriding of SPC j i

Scope `j i` key binding under major-mode specific leader key.
This commit is contained in:
syl20bnr 2016-12-16 08:56:44 -05:00
parent 679da2436a
commit 590f229854
2 changed files with 4 additions and 3 deletions

View file

@ -10,6 +10,6 @@
;;; License: GPLv3
(defun restclient-http-send-current-raw-stay-in-window ()
(defun spacemacs/restclient-http-send-current-raw-stay-in-window ()
(interactive)
(restclient-http-send-current t t))

View file

@ -49,7 +49,7 @@
"p" 'restclient-jump-prev
"s" 'restclient-http-send-current-stay-in-window
"S" 'restclient-http-send-current
"r" 'restclient-http-send-current-raw-stay-in-window
"r" 'spacemacs/restclient-http-send-current-raw-stay-in-window
"R" 'restclient-http-send-current-raw
"y" 'restclient-copy-curl-command))))
@ -63,4 +63,5 @@
(defun restclient/init-restclient-helm ()
(use-package restclient-helm
:init (spacemacs/set-leader-keys "ji" 'helm-restclient)))
:init (spacemacs/set-leader-keys-for-major-mode 'restclient-mode
"ji" 'helm-restclient)))