summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2017-12-01 10:42:15 +0100
committerPierre Neidhardt <ambrevar@gmail.com>2017-12-01 11:09:02 +0100
commit1c0ab22d7d3f0747f5fcf20a82aa2de0a65c1f39 (patch)
treef162916c95f6118d6d0d047a9287bbf369c91226
parent1a1a29d7cab78b7cfd6e4873a3b63028c25194dc (diff)
Revert "evil-helm: Add support for numeric prefix in mark commands"
This reverts commit 0aef7f5bdecf661f988d3d748d78f8ec6ef69f3a. Helm has added support for numeric selection, there is no need for this anymore.
-rw-r--r--evil-helm.el15
1 files changed, 1 insertions, 14 deletions
diff --git a/evil-helm.el b/evil-helm.el
index f61b98a..304d168 100644
--- a/evil-helm.el
+++ b/evil-helm.el
@@ -42,18 +42,6 @@
(defvar helm-find-files-map)
(defvar helm-read-file-map)
-(defun evil-helm-toggle-visible-mark-backwards (&optional args)
- (interactive "p")
- (evil-helm-toggle-visible-mark args t))
-
-(defun evil-helm-toggle-visible-mark (&optional args backwards)
- (interactive "p")
- (unless (numberp args) (setq args 1))
- (dotimes (_ (abs args))
- (if (or (and (< args 0) (not backwards)) (and (> args 0) backwards))
- (helm-toggle-visible-mark-backwards)
- (helm-toggle-visible-mark))))
-
(defun evil-helm-setup ()
"Set up `evil' bindings for `helm'."
;; TODO: We should not modify helm-map in Emacs state but somehow it does not
@@ -73,8 +61,7 @@
"k" 'helm-previous-line
"g" 'helm-beginning-of-buffer
"G" 'helm-end-of-buffer
- (kbd "SPC") 'evil-helm-toggle-visible-mark
- (kbd "S-SPC") 'evil-helm-toggle-visible-mark-backwards)
+ (kbd "SPC") 'helm-toggle-visible-mark)
(evil-define-key '(normal insert) helm-map
(kbd "M-j") 'helm-next-line