dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit c6d7767e834ce2a565bd8407e8dde5103390b8ee
parent d860c3a6ce7c53f614eb6b488c024ba778ba1680
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Fri,  5 May 2023 11:14:29 +0300

emacs: omar polo buffer-to-side-window function

Diffstat:
Memacs/.emacs.d/init.el | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -112,6 +112,18 @@ (newline-and-indent)) (global-set-key (kbd "C-c RET") 'knh-new-line-below) +;; borrowed from https://www.omarpolo.com/post/emacs-side-window.html +(defun op/buffer-to-side-window () + "Place the current buffer in the side window at the bottom." + (interactive) + (let ((buf (current-buffer))) + (display-buffer-in-side-window + buf '((window-height . 0.25) + (side . bottom) + (slot . -1) + (window-parameters . ((no-delete-other-windows t))))) + (delete-window))) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.