File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 1441
1441
(+map! :package ace-window :module me-window
1442
1442
" wa" #'ace-window )
1443
1443
1444
- (+map! " wj" '(+window-adjust-size/body :wk " +window-adjust-size" ))
1444
+ (+map! " wj" '(+window-adjust-size-transient :wk " +window-adjust-size" ))
1445
1445
1446
1446
1447
1447
Original file line number Diff line number Diff line change 73
73
(window-width . 0.5 )
74
74
(reusable-frames . visible)))
75
75
76
- ; ; Adapted from: github.com/Phundrak/dotfiles/blob/master/org/config/emacs.org
77
- (with-eval-after-load 'hydra
78
- (defhydra +window-adjust-size (:hint nil :foreign-keys warn)
79
- "
80
- ^Zoom^ ^Other
81
- ^^^^^^^-----------------------------------------
82
- [_t_/_s_] shrink/enlarge vertically [_q_] quit
83
- [_c_/_r_] shrink/enlarge horizontally
84
- "
85
- (" q" nil :exit t )
86
- (" c" shrink-window-horizontally)
87
- (" t" enlarge-window)
88
- (" s" shrink-window)
89
- (" r" enlarge-window-horizontally)))
90
76
91
77
(setq frame-title-format '(" GNU Emacs (%b)" ))
92
78
79
+ (with-eval-after-load 'transient
80
+ (transient-define-prefix +window-adjust-size-transient ()
81
+ " Transient for adjusting window size."
82
+ [[(" s" " Shrink" shrink-window :transient t )
83
+ (" e" " Enlarge" enlarge-window :transient t )]
84
+ [(" h" " Shrink horizontally" shrink-window-horizontally :transient t )
85
+ (" l" " Enlarge horizontally" enlarge-window-horizontally :transient t )]
86
+ [(" Q" " Quit" ignore :transient t )]]))
87
+
93
88
94
89
(provide 'me-window )
95
90
You can’t perform that action at this time.
0 commit comments