Emacs -fs (fullscreen)

I am trying to use emacs in full screen mode with a decent font. I have an nvidia-based laptop running Ubuntu. When it first loads, the font is a huge 16pt font. I used the menu options to set a decent font (8pt).

Now, when I run emacs in full screen, it adjusts the window view for the huge font, and then it loads my 8pt font. Now half of my screen is a minibuffer. How to set the font correctly so that I can use full screen mode.

I tried to specify a mapping in my x configuration, and X does not start. I hear that you need to do something else for the nvidia drivers ... but I don’t know how it works.

+3
source share
2 answers

I use the following (from http://www.emacswiki.org/emacs/FullScreen ) in my .emacs:

(defun toggle-fullscreen (&optional f)
  (interactive)
  (let ((current-value (frame-parameter nil 'fullscreen)))
    (set-frame-parameter nil 'fullscreen
                         (if (equal 'fullboth current-value)
                             (if (boundp 'old-fullscreen) old-fullscreen nil)
                           (progn (setq old-fullscreen current-value)
                                  'fullboth)))))

(global-set-key [f11] 'toggle-fullscreen)

;; Make new frames fullscreen by default. Note: this hook doesn't do
;; anything to the initial frame if it in your .emacs, since that file is
;; read _after_ the initial frame is created.
(add-hook 'after-make-frame-functions 'toggle-fullscreen)

Then F11 will turn on / off full screen mode.

+4
source

This is difficult since I cannot reproduce the problem on my machine. I just add -fs and it seems to work. If you just want more real estate ... do it for you:

  • select menu / toolbar
    • Add (menu-bar-mode 0)and (tool-bar-mode 0)in the .emacs
    • launch and maximization
    • you should just have a regular DE frame, but nothing else
    • switch from emacs using M-x menu-bar-modeand M-x tool-bar-modeas needed

  • manually fullscreen emacs
    • I can just start emacs, right click on the window pane and select full screen mode from xfce
    • F11, , emacs (emacs, , , DE)
    • , , DE, emacs

    • emacs (/usr/bin/emacs)
    • .
    • ,

? , Ubuntu / nvidia. , ! , emacs , ( ) , .

+3

Source: https://habr.com/ru/post/1775650/


All Articles