After running this in my shell:

$ sudo dnf -y remove emacs
$ sudo dnf clean all
$ rm -f ~/.emacs
$ rm -r ~/.emacs.d
$ sudo dnf -y install emacs
$ emacs foo.org           # existent file

Then, within emacs C-c [; file added to agenda files. I close emacs.

Then I open emacs in the shell:

$ emacs --eval "(org-agenda-list)" --eval "(delete-other-windows)"

and try to increase the font size with: C-x C-- or C-x C-=.

I get this message:

text-scale-adjust: Symbol’s value as variable is void: text-scale-mode

And the font size does not change. I have this behavior in two different machines, one Ubuntu, the other Fedora. I have searched for a solution for days, but perhaps because of my lisp illiteracy, I cannot relate similar posts with my problem.

If I input M-x text-scale-set RET, the font increases a bit, and now I can use C-x C-- and C-x C-=. If I open other files (for example the welcome buffer) C-x C-- and C-x C-= work well. I don't get why this happens.


$ emacs --version          
GNU Emacs 27.1
Copyright (C) 2020 Free Software Foundation, Inc.
  • Which version of Emacs?
    – phils
    Nov 15, 2021 at 8:00
  • info added as edit in the question: version 27.1
    – onlycparra
    Nov 15, 2021 at 8:03
  • That does seem strange. text-scale-adjust is autoloaded in Emacs 27.1 and that same library defines text-scale-mode. Perhaps check that face-remap.el has been byte-compiled (or just recompile it).
    – phils
    Nov 15, 2021 at 8:58
  • This problem does not have anything to do with org-agenda, so it probably should not have the org-agenda tag. BTW, note parenthetically that C-c [ adds the current file to the org-agenda-files variable for the current session only. If you want it permanently added, you need to customize the variable or set it in your init file.
    – NickD
    Nov 15, 2021 at 18:19
  • I though the problem was related to org-agenda because that was the only mode that had the issue. On any other mode I could change the text size. I ended up removing everything and adding packages one by one. Once I get time I will try to write an answer.
    – onlycparra
    Nov 16, 2021 at 7:28


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.