From d89f89aa78acf878860c06f5a289661de1cfcc4b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 7 Aug 2022 16:21:00 -0700 Subject: enable copying and opening URLs from foot, inc. copying into Emacs --- .config/foot/foot.ini | 5 +++++ .emacs.d/init.el | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 61da7bd5..eb214222 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -24,3 +24,8 @@ bright4 = 729fcf bright5 = ad7fa8 bright6 = 34e2e2 bright7 = eeeeec + +[key-bindings] + +show-urls-launch = Mod4+l +show-urls-copy = Mod4+Control+l diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d97fd3f8..790f0202 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -704,10 +704,12 @@ Lisp Interaction C-j in `lisp-interaction-mode' and similar." ;; not expect `mouse-autoselect-window' to be on. E.g. `magit-status' ;; can leave focus in the wrong window without this. (advice-add 'display-buffer :around #'spw/disable-mouse-autoselect-window)) - ;; If X or Sway, we know we have a usable primary selection, so turn off - ;; additionally copying to the clipboard. See also NEWS.24. - (setq select-enable-clipboard - (not (or spw/tiling-wm-p (eq (framep frame) 'x))))) + ;; If X or Sway, we know we have a usable primary selection, so we used to + ;; turn off additionally copying to the clipboard. However, we do want to + ;; be able to yank from the clipboard. See also NEWS.24. + ;; (setq select-enable-clipboard + ;; (not (or spw/tiling-wm-p (eq (framep frame) 'x)))) + ) (add-to-list 'after-make-frame-functions #'spw/detect-tiling-wm) (defun spw/use-tabs-not-frames () -- cgit v1.2.3