I'm trying to use Espanso in Emacs GUI. But nothing expands and Emacs echoes the message: "Beginning of buffer". The same snippet works everywhere except Emacs. I want to know where the message comes from and why Espanso or any other text expanders does not work in Emacs. It does work with emacs -q. I'm using Emacs Mac port with spacemacs.

  • 1
    Since it works with emacs -q, the fault is with your init file. Bisect it to find out what the problem is.
    – NickD
    Jan 17, 2023 at 12:59
  • @NickD The problem is that I use spacemacs, it has tons of settings.
    – Tokubara
    Jan 17, 2023 at 23:38

1 Answer 1


Use debug-on-message to enter the debugger and show a traceback when a message is shown which matches the regex it is set to:

(setq debug-on-message "Beginning of buffer")

To apply this to your init.el file, put the above in or close to its beginning (or if necessary in early-init.el) and restart Emacs. It might also work, but not necessarily so, by just running the code above and then evaluating the whole init.el file using eval-buffer.

  • That's really useful. Thanks for sharing.
    – g-gundam
    Jan 18, 2023 at 14:57

Your Answer

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

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