aboutsummaryrefslogtreecommitdiff
path: root/config/emacs/emacs.d/lisp/init-windows.el
blob: 3d673cd7b8c81435b5f1bbb684b8632b73e385ed (plain)
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
;;; init-windows --- Emacs Window configuration
;;; Commentary:
;;;
;;; Partially taken from:
;;; https://github.com/purcell/emacs.d/blob/b2aea30bff7ca4bbb62f579ca7e3ff0e895a7911/lisp/init-windows.el
;;; This is not about the "Windows" OS, but rather Emacs's "windows"
;;; concept: these are the panels within an Emacs frame which contain
;;; buffers.
;;;
;;; Code:

(defvar switch-window)
(defvar switch-window-shortcut-style)
(defvar switch-window-timeout)


(use-package switch-window
  :commands switch-window
  :config
  (setq switch-window-shortcut-style 'alphabet)
  (setq switch-window-timeout nil)
  :init
  (global-set-key (kbd "C-x o") #'switch-window))

(provide 'init-windows)
;;; init-windows.el ends here