Fix copy-in-visual-state bug on emacs-mac
This commit is contained in:
parent
0c261f9821
commit
b69c1be4f4
1 changed files with 7 additions and 8 deletions
|
@ -44,14 +44,13 @@
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(when (featurep 'ns)
|
|
||||||
(after! evil
|
(after! evil
|
||||||
;; On OSX, stop copying each visual state move to the clipboard:
|
;; On OSX, stop copying each visual state move to the clipboard:
|
||||||
;; https://bitbucket.org/lyro/evil/issue/336/osx-visual-state-copies-the-region-on
|
;; https://bitbucket.org/lyro/evil/issue/336/osx-visual-state-copies-the-region-on
|
||||||
;; Most of this code grokked from:
|
;; Most of this code grokked from:
|
||||||
;; http://stackoverflow.com/questions/15873346/elisp-rename-macro
|
;; http://stackoverflow.com/questions/15873346/elisp-rename-macro
|
||||||
(defadvice evil-visual-update-x-selection (around clobber-x-select-text activate)
|
(defadvice evil-visual-update-x-selection (around clobber-x-select-text activate)
|
||||||
(unless (featurep 'ns) ad-do-it))))
|
(unless (or (featurep 'mac) (featurep 'ns)) ad-do-it)))
|
||||||
|
|
||||||
(defun narf-open-with (&optional app-name path)
|
(defun narf-open-with (&optional app-name path)
|
||||||
"Send PATH to APP-NAME on OSX."
|
"Send PATH to APP-NAME on OSX."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue