From 86dfb4e4f281b299fc7139d730e665de0e54d133 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 11 Feb 2024 16:39:29 +0000 Subject: emacs: Replace my/focus-frame with my/resize-frame my/resize-frame will provide more options to resize the frame as desired. Also, make that function available only on macOS, since Linux has capable tiling window managers. --- emacs/functions.el | 8 -------- emacs/init.el | 1 - 2 files changed, 9 deletions(-) (limited to 'emacs') diff --git a/emacs/functions.el b/emacs/functions.el index 3e879cc..85b45ac 100644 --- a/emacs/functions.el +++ b/emacs/functions.el @@ -62,14 +62,6 @@ enabled." (dolist (mode '(menu-bar-mode scroll-bar-mode tool-bar-mode)) (when (and (fboundp mode) (symbol-value mode)) (funcall mode -1)))) -(defun my/focus-frame (&optional frame) - "Focus FRAME." - (interactive) - (delete-other-windows) - (modify-frame-parameters frame '((height . 1.0) (width . 0.5) - (left . 0.5) (top . 1.0) - (user-position . t)))) - ;; Misc. Stuff diff --git a/emacs/init.el b/emacs/init.el index d270371..97baec0 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -98,7 +98,6 @@ (keymap-global-set "C-TAB" #'other-window) (keymap-global-set "C-M-TAB" #'other-frame) -(keymap-global-set "C-c l" #'my/focus-frame) (keymap-global-set "C-c f" #'toggle-frame-maximized) (windmove-default-keybindings 'super) -- cgit v1.2.3-70-g09d2