diff options
Diffstat (limited to 'tools/emacs/config')
-rw-r--r-- | tools/emacs/config/desktop.el | 7 | ||||
-rw-r--r-- | tools/emacs/config/init.el | 25 |
2 files changed, 0 insertions, 32 deletions
diff --git a/tools/emacs/config/desktop.el b/tools/emacs/config/desktop.el index fb927b12e4d8..d923ab584c75 100644 --- a/tools/emacs/config/desktop.el +++ b/tools/emacs/config/desktop.el @@ -210,11 +210,4 @@ (exwm-input-set-key (kbd "s-m h") #'randr-layout-hdmi1-extend) (exwm-input-set-key (kbd "s-m s") #'randr-layout-single) -;; Use edwina for window management shortcuts -;; -;; Its initialisation process is oddly stateful, hence configuration -;; happens here before toggling its minor mode. -(setq edwina-keymap-prefix (kbd "s-w")) -(edwina-mode 1) - (provide 'desktop) diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el index 0410289b6cc2..eac109f985d0 100644 --- a/tools/emacs/config/init.el +++ b/tools/emacs/config/init.el @@ -49,31 +49,6 @@ :after (notmuch telega) :config (dottime-display-mode t)) -(use-package edwina - :after (ace-window ivy) - :init - (defun edwina-split-to-buffer () - (interactive) - (ivy-read "Switch to buffer: " #'internal-complete-buffer - :keymap ivy-switch-buffer-map - :preselect (buffer-name (other-buffer (current-buffer))) - :action (lambda (buffer) - (interactive) - (split-window-below) - (switch-to-buffer buffer nil 'force-same-window) - (edwina-arrange)) - :matcher #'ivy--switch-buffer-matcher - :caller 'ivy-switch-buffer)) - ;; Using an advice for this functionality breaks various internal - ;; things in split-window, hence a new interactive function. - (defun edwina-split-arrange () - (interactive) - (split-window-below) - (edwina-arrange)) - :bind (("C-x 2" . edwina-split-arrange) - :map edwina-mode-map - ("s-w b" . #'edwina-split-to-buffer))) - (use-package gruber-darker-theme) (use-package ht) (use-package hydra) |