From b69c1be4f468ff376b770e6bb317d05604000944 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 13 Nov 2015 03:40:32 -0500 Subject: [PATCH] Fix copy-in-visual-state bug on emacs-mac --- core/core-os-osx.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/core/core-os-osx.el b/core/core-os-osx.el index e8aa4c78b..6de615e6c 100644 --- a/core/core-os-osx.el +++ b/core/core-os-osx.el @@ -44,14 +44,13 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(when (featurep 'ns) - (after! evil - ;; 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 - ;; Most of this code grokked from: - ;; http://stackoverflow.com/questions/15873346/elisp-rename-macro - (defadvice evil-visual-update-x-selection (around clobber-x-select-text activate) - (unless (featurep 'ns) ad-do-it)))) +(after! evil + ;; 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 + ;; Most of this code grokked from: + ;; http://stackoverflow.com/questions/15873346/elisp-rename-macro + (defadvice evil-visual-update-x-selection (around clobber-x-select-text activate) + (unless (or (featurep 'mac) (featurep 'ns)) ad-do-it))) (defun narf-open-with (&optional app-name path) "Send PATH to APP-NAME on OSX."