From 1ae687ce82bf1fe7bf04363901394b39edb9e9d3 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 18 Feb 2024 11:51:11 +0000 Subject: emacs: Add a few more keys in my/resize-frame --- dotfiles-darwin/emacs/functions.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles-darwin/emacs/functions.el b/dotfiles-darwin/emacs/functions.el index 2339e3e..938ae97 100644 --- a/dotfiles-darwin/emacs/functions.el +++ b/dotfiles-darwin/emacs/functions.el @@ -13,9 +13,12 @@ (let ((echo-keystrokes nil)) (set-transient-map (let ((map (make-sparse-keymap))) - (dolist (elem `(("j" . ((width . ,(/ 2.0 3)))) + (keymap-set map "f" #'toggle-frame-maximized) + (dolist (elem `(("i" . ((width . 0.5))) + ("j" . ((width . ,(/ 2.0 3)))) ("k" . ((left . 1.0) (width . ,(/ 2.0 3)))) - ("l" . ((left . 0.5) (width . 0.5))))) + ("l" . ((left . 0.5) (width . 0.5))) + ("o" . ((left . 1.0) (width . 0.5))))) (keymap-set map (car elem) (lambda () (interactive) (my/modify-frame-parameters (cdr elem))))) -- cgit v1.2.3-70-g09d2