Skip to content

Commit

Permalink
remove acond dependency and reorder paste cmd preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
msin32 authored Aug 22, 2024
1 parent 07b70c4 commit 0cb4f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emacs-everywhere.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

(require 'cl-lib)
(require 'server)
(require 'anaphora)

(defgroup emacs-everywhere ()
"Customise group for Emacs-everywhere."
Expand Down Expand Up @@ -70,8 +69,9 @@
(list "powershell" "-NoProfile" "-Command"
"& {(New-Object -ComObject wscript.shell).SendKeys(\"^v\")}"))
('x11 (list "xdotool" "key" "--clearmodifiers" "Shift+Insert"))
('wayland (acond ((executable-find "dotool") (list it))
((executable-find "ydotool") (list it "key" "42:1" "110:1" "42:0" "110:0"))))
('wayland (cond ((executable-find "dotool") (list "dotool"))
((executable-find "wtype") (list "wtype" "-M" "Shift" "-P" "Insert" "-m" "Shift" "-p" "Insert"))
((executable-find "ydotool") (list "ydotool" "key" "42:1" "110:1" "42:0" "110:0")))) ; Note: ydotool requires ydotoold daemon running
('unknown
(list "notify-send"
"No paste command defined for emacs-everywhere"
Expand Down

0 comments on commit 0cb4f3d

Please sign in to comment.