meow-edit / meow

Yet another modal editing on Emacs / 猫态编辑
GNU General Public License v3.0
1.09k stars 127 forks source link

Faces do not get initialized correctly when emacs is run with --daemon #491

Open johannesneyer opened 10 months ago

johannesneyer commented 10 months ago

works:

emacs -Q -l meowminimal.el

does not work:

emacs -Q --daemon -l meowminimal.el
emacsclient -c
meowminimal.el ```elisp (package-initialize) (require 'meow) (use-package meow :config (meow-normal-define-key '("b" . meow-back-word)) (meow-global-mode)) ```

meow version: 5af47984895fb7b9a5a65a8d919ba62680a975da

johannesneyer commented 10 months ago

I have this as a workaround:

(add-hook 'window-setup-hook
          #'(lambda () (run-with-timer 1 nil 'meow--prepare-face)))