diff options
| -rw-r--r-- | jakob.org | 47 |
1 files changed, 0 insertions, 47 deletions
@@ -1129,42 +1129,6 @@ pinentry's job. (setq epa-pinentry-mode 'loopback)) #+END_SRC -** Workspaces - -This package is a work-in-progress, so until I fix it up to the point that it's -ready to be published on MELPA, I'll just pull it from sourcehut. - -#+BEGIN_SRC elisp -(straight-use-package - '(exwm-buffer-groups :type git :repo "https://git.sr.ht/~jakob/exwm-buffer-groups")) -(require 'exwm-buffer-groups) -#+END_SRC - -Replace <C-x b> with a version of =counsel-switch-buffer= adapted to work with -=exwm-buffer-groups=. - -#+BEGIN_SRC elisp -(defun counsel-switch-buffer-workspace () - "Switch to another buffer in the current workspace. -Display a preview of the selected ivy completion candidate buffer -in the current window." - (interactive) - ;; Clean up so that "nil" isn't showing up in the list. - (exwm-buffer-groups--remove-buffers) - (ivy-read "Switch to buffer: " - (map 'list - #'buffer-name - (elt exwm-buffer-groups-buffers exwm-workspace-current-index)) - :preselect (buffer-name (other-buffer (current-buffer))) - :action #'ivy--switch-buffer-action - :matcher #'ivy--switch-buffer-matcher - :caller 'counsel-switch-buffer - :unwind #'counsel--switch-buffer-unwind - :update-fn 'counsel--switch-buffer-update-fn)) - -(bind-key "C-x b" #'counsel-switch-buffer-workspace) -#+END_SRC - * System ** ag @@ -1883,17 +1847,6 @@ assault me with windows when I connect to my bouncer. erc-join-buffer 'bury) #+END_SRC -Also, move popped query buffers to the workspace I use for IRC. - -#+BEGIN_SRC elisp - :hook - (erc-mode .(lambda () - (setf (elt exwm-buffer-groups-buffers exwm-workspace-current-index) - (remove (current-buffer) - (elt exwm-buffer-groups-buffers exwm-workspace-current-index))) - (push (current-buffer) (elt exwm-buffer-groups-buffers 1)))) -#+END_SRC - Show CTCP requests. Not for any reason in particular, I just like seeing when people ping me. |