Revert "emacs: switch back to puregtk, with clipboard fix"

This reverts commit f09190c68e.
This commit is contained in:
Jez Cope 2021-07-29 17:12:19 +01:00
parent aef77c676d
commit ec788313fb
2 changed files with 1 additions and 20 deletions

View File

@ -3,7 +3,7 @@
{
programs.emacs = {
enable = true;
package = pkgs.emacsPgtkGcc;
package = pkgs.emacsGcc;
};
home.packages = with pkgs;

View File

@ -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