-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.el
32 lines (23 loc) · 1.02 KB
/
window.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;; window.el --- Padraic's Emacs configuration -*- lexical-binding: t -*-
;; Copyright (C) 2023-2023 Patrick H Morris
;; Author: Patrick H Morris <[email protected]>
;; Keywords: internal
;; URL: https://github.com/Padraic-O-Mhuiris/emacs
;;; Commentary:
;; A fully fledged, reproducible Emacs configuration
;;; Code:
;; The fringe is the narrow vertical areas on either side of windows
(set-fringe-mode 0)
;; Useful mode to undo and redo window configurations
;; C-c <left> reverts to previous window configuration
;; C-c <right> goes forward in the window configuration undo history
(winner-mode t)
;; Set ace-window labels for jumping between frames
(setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
(defun pm/visible-windows (&optional window-list)
"Return a list of the visible, non-popup (dedicated) windows."
(cl-loop for window in (or window-list (window-list))
when (or (window-parameter window 'visible)
(not (window-dedicated-p window)))
collect window))
(provide 'window.el)