Override evil mouse support in helm (#3700)
This commit is contained in:
parent
771b74ebf9
commit
d14f10e47d
|
@ -688,7 +688,8 @@ Removes the automatic guessing of the initial value based on thing at point. "
|
|||
;; otherwise Helm cannot reuse its own windows for copyinng/deleting
|
||||
;; etc... because of existing popwin buffers in the alist
|
||||
(setq display-buffer-alist nil)
|
||||
(popwin-mode -1)))
|
||||
(popwin-mode -1)
|
||||
(define-key evil-motion-state-map [down-mouse-1] nil)))
|
||||
|
||||
(defun spacemacs//display-helm-window (buffer)
|
||||
(let ((display-buffer-alist (list spacemacs-helm-display-help-buffer-regexp
|
||||
|
@ -704,6 +705,7 @@ Removes the automatic guessing of the initial value based on thing at point. "
|
|||
(setq helm-display-function 'spacemacs//display-helm-window)
|
||||
|
||||
(defun spacemacs//restore-previous-display-config ()
|
||||
(define-key evil-motion-state-map [down-mouse-1] 'evil-mouse-drag-region)
|
||||
(popwin-mode 1)
|
||||
;; we must enable popwin-mode first then restore `display-buffer-alist'
|
||||
;; Otherwise, popwin keeps adding up its own buffers to `display-buffer-alist'
|
||||
|
|
Loading…
Reference in New Issue