summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-02-18 11:51:11 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2024-02-18 11:51:11 +0000
commit1ae687ce82bf1fe7bf04363901394b39edb9e9d3 (patch)
treef28bbd081158d28c36431d71f0d70e7595ded956
parent5fb9bea3be90152cbad41548f8336e379314e69e (diff)
emacs: Add a few more keys in my/resize-frame
-rw-r--r--dotfiles-darwin/emacs/functions.el7
1 files 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)))))