|
From: | David Hedlund |
Subject: | Re: Solution to a proposed FAQ, how to maximize emacs quickly (like `emacs --maximize`) for GNU/Linux |
Date: | Wed, 27 Sep 2023 17:10:53 +0200 |
User-agent: | Mozilla Thunderbird |
On 9/27/23 17:07, David Hedlund wrote:
Sorry, I forgot to add (add-hook 'after-init-hook 'switch-full-screen). Here's everything:
(defun switch-full-screen () (interactive) (shell-command "wmctrl -r :ACTIVE: -b add,maximized_horz,maximized_vert")) (add-hook 'after-init-hook 'switch-full-screen)
This is a very compact and useful solution. Again, I suggest it to be documented in the Emacs Manual in a new page: https://www.gnu.org/software/emacs/manual/html_node/efaq/Fullscreen-mode-on-GNU-Linux.html Again, the devilspie2 solution is much longer, can be used for both X11 and Wayland. |
[Prev in Thread] | Current Thread | [Next in Thread] |