mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
evil: remove monkey patches (maybe fixed upstream?)
This commit is contained in:
@ -106,19 +106,6 @@
|
|||||||
(setq narf-popup-windows (delq w narf-popup-windows))))
|
(setq narf-popup-windows (delq w narf-popup-windows))))
|
||||||
narf-popup-windows))
|
narf-popup-windows))
|
||||||
|
|
||||||
;; Fix disruptive errors w/ hidden buffers caused by workgroups killing windows
|
|
||||||
;; TODO Delete timer on dead windows
|
|
||||||
(defadvice evil-ex-hl-do-update-highlight (around evil-ex-hidden-buffer-ignore-errors activate)
|
|
||||||
(ignore-errors ad-do-it))
|
|
||||||
|
|
||||||
;; Monkey-patch an error triggered randomly during column-selection caused
|
|
||||||
;; by `evil-move-to-column' receiving a float:
|
|
||||||
;; evil-move-to-column: Wrong type argument: wholenump, 12.0
|
|
||||||
(defun narf*evil-move-to-column-fix (args)
|
|
||||||
(mapcar (lambda (i) (if (numberp i) (truncate i) i)) args))
|
|
||||||
(advice-add 'evil-move-to-column :filter-args 'narf*evil-move-to-column-fix)
|
|
||||||
(advice-add 'extract-rectangle-line :filter-args 'narf*evil-move-to-column-fix)
|
|
||||||
|
|
||||||
;; Hide keystroke display while isearch is active
|
;; Hide keystroke display while isearch is active
|
||||||
(add-hook! isearch-mode (setq echo-keystrokes 0))
|
(add-hook! isearch-mode (setq echo-keystrokes 0))
|
||||||
(add-hook! isearch-mode-end (setq echo-keystrokes 0.02))
|
(add-hook! isearch-mode-end (setq echo-keystrokes 0.02))
|
||||||
|
Reference in New Issue
Block a user