2

Recently I updated Emacs to the newest version (26.2) which comes with new daemon functionality and Emacs server in combination with Systemd (Manjaro here).

Previously there were no issues with setting a server, but now I've got no idea what is going on.

I did what is recommended here (EmacsWiki) and here (StackExchange) so I have an emacs.service file and set systemctl --user enable emacs and systemctl --user start emacs but my emacsclient GUI comes out shrunk.

screenshot of Emacs with tiny text

What am I doing wrong?

  • How have you configured your fonts in Emacs? – DoMiNeLa10 Aug 8 at 15:04
  • @DoMiNeLa10 (set-face-attribute 'default nil :font "SF Mono-14") (set-frame-font "SF Mono" nil t) – j3k Aug 8 at 16:28
  • 1
    Try something like (add-to-list 'default-frame-alist '(font . "SF Mono-14")) – DoMiNeLa10 Aug 8 at 16:51
  • Yeah, now the font is being displayed properly, but the hiding of the (menu-bar-mode -1), (tool-bar-mode -1) and (scroll-bar-mode -1) doesn't work – j3k Aug 8 at 20:55
  • 1
    Evaluating them manually works. I've actually removed the (when (window-system) ...) formula and now everything works properly. Thank you! – j3k Aug 9 at 7:40
2

The things that I did on the @DoMiNeLa10's advice:

  1. Set
(add-to-list 'default-frame-alist '(font . "SF Mono-14"))

instead of

(set-face-attribute 'default nil :font "SF Mono-14")
(set-frame-font "SF Mono" nil t)
  1. By playing around with evaluating (menu-bar-mode -1), (tool-bar-mode -1) and (scroll-bar-mode -1) I just found out that it works if I remove the formulae of
(when (window-system)
  ;; Then evaluate the menu-bar, tool-bar, scroll bar etc. disabling
  )

And the issue is gone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.