dotfiles/.config/emacs/modules/display/earnemod-window.el

30 lines
644 B
EmacsLisp

;;; earnemod-window.el --- -*- lexical-binding: t; -*-
;; Copyright (C) 2020-2021 earnest ma
;; SPDX-License-Identifier: MIT
;; Author: earnest ma <me@earne.link>
;;; Code:
(use-package ace-window
:bind (("M-o" . 'ace-window)
("M-O" . 'ace-delete-window))
:general
(earnemacs-spc-def
"wo" 'ace-window
"wO" 'ace-delete-window
"wX" 'ace-delete-other-windows))
;; Easily undo/ redo window configuration
(use-package winner
:straight nil
:demand
:general
(earnemacs-spc-def
"wu" 'winner-undo
"wU" 'winner-redo)
:config
(winner-mode 1))
(provide 'earnemod-window)
;;; earnemod-window.el ends here