summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-08-07 16:21:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-08-07 16:25:48 -0700
commitd89f89aa78acf878860c06f5a289661de1cfcc4b (patch)
tree3cf8fec6268517fd364921beabb29b11e8ae87fc
parentc4daf2511cfc9f1653a23a996216d60671656c62 (diff)
downloaddotfiles-d89f89aa78acf878860c06f5a289661de1cfcc4b.tar.gz
enable copying and opening URLs from foot, inc. copying into Emacs
-rw-r--r--.config/foot/foot.ini5
-rw-r--r--.emacs.d/init.el10
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 ()