Add a window management key binding
This commit is contained in:
parent
bb87c04a71
commit
9cb89449bd
@ -500,8 +500,8 @@ Mickey Peterson's post [[https://www.masteringemacs.org/article/demystifying-ema
|
||||
window placement. Listing [[lst:1st-window-management]] and
|
||||
[[lst:2nd-window-management]] implement a selection of his recommendations.
|
||||
|
||||
#+caption[Window management functions]:
|
||||
#+caption: Window management functions.
|
||||
#+caption[Window management functions and key bindings]:
|
||||
#+caption: Window management functions and key bindings.
|
||||
#+name: lst:1st-window-management
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'emacs
|
||||
@ -529,7 +529,9 @@ window placement. Listing [[lst:1st-window-management]] and
|
||||
(defun make-display-buffer-matcher-function (major-modes)
|
||||
"Return a lambda function to match a list of MAJOR-MODES."
|
||||
(lambda (buffer-name action)
|
||||
(with-current-buffer buffer-name (apply #'derived-mode-p major-modes)))))
|
||||
(with-current-buffer buffer-name (apply #'derived-mode-p major-modes))))
|
||||
|
||||
(global-set-key (kbd "M-o") #'other-window))
|
||||
#+end_src
|
||||
|
||||
#+caption[Window management variables]:
|
||||
|
Loading…
Reference in New Issue
Block a user