better C-x = (safe-maximize-window) binding
Stefan Bund [Fri, 13 Oct 2017 11:00:01 +0000 (13:00 +0200)]
setup/mywin.el

index b33e6a5..4fde816 100644 (file)
@@ -215,5 +215,10 @@ the buffer stack in the current window."
         (error "Current window is not a top window"))
     (shrink-window-horizontally (- (- width (window-width) (* window-min-width (1- count)))))))
 
-(global-set-key "\C-x=" 'safe-max-window-horizontally)
+(defun safe-max-window ()
+  (interactive)
+  (safe-max-window-horizontally)
+  (maximize-window 5))
+
+(global-set-key "\C-x=" 'safe-max-window)
 (global-set-key "\C-x-" 'maximize-window-15)