3

I am using Emacs 25 in SUSE linux and when I switch to a workspace where Emacs is the front window almost none of the text is visible. I have to call redraw-display in order to get it refresh the screen so I can see my text. Is there someway that I could make this automatic? Like whenever Emacs gets focused it calls redraw-display?

Prgrm.celeritas
  • 849
  • 6
  • 15
  • 1
    See section on [input focus](https://www.gnu.org/software/emacs/manual/html_node/elisp/Input-Focus.html) in the Emacs Lisp manual. You can use the `focus-in-hook` – Håkon Hægland Dec 09 '16 at 11:34

1 Answers1

3

Add a hook to the focus event. (add-hook 'focus-in-hook 'redraw-display). Thanks to Håkon Hægland for the Answer!

Prgrm.celeritas
  • 849
  • 6
  • 15