Revert "emacs: switch back to puregtk, with clipboard fix"
This reverts commit f09190c68e
.
This commit is contained in:
parent
aef77c676d
commit
ec788313fb
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacsPgtkGcc;
|
||||
package = pkgs.emacsGcc;
|
||||
};
|
||||
|
||||
home.packages = with pkgs;
|
||||
|
|
|
@ -80,25 +80,6 @@ Disable format-on-save for Rust, since it seems to complain...
|
|||
'(not rust-mode))
|
||||
#+END_SRC
|
||||
|
||||
** Wayland-specific
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(when (getenv "WAYLAND_DISPLAY")
|
||||
(setq wl-copy-p nil
|
||||
|
||||
interprogram-cut-function
|
||||
(lambda (text)
|
||||
(setq-local process-connection-type 'pipe)
|
||||
(setq wl-copy-p (start-process "wl-copy" nil "wl-copy" "--foreground" "--trim-newline"))
|
||||
(process-send-string wl-copy-p text)
|
||||
(process-send-eof wl-copy-p))
|
||||
|
||||
interprogram-paste-function
|
||||
(lambda ()
|
||||
(unless (and wl-copy-p (process-live-p wl-copy-p))
|
||||
(shell-command-to-string "wl-paste -n | tr -d '\r'")))))
|
||||
#+end_src
|
||||
|
||||
* Projects
|
||||
|
||||
** Projectile
|
||||
|
|
Loading…
Reference in New Issue