zachcurry / emacs-anywhere

Configurable automation + hooks called with application information
MIT License
1.08k stars 49 forks source link

Is it really necessary to use `C-x 5 0`? Why can't I use classic `C-x C-x` to quit? #77

Open pdelfino opened 2 years ago

pdelfino commented 2 years ago

Hi,

I have been trying this extension. It is pretty cool!

On documentation, you guys mentioned the use of =C-x 5 0= to quit. Or =:q= for Evil folks.

But, I have been using classic =C-x C-c=. Apparently, it works as expected. For instance, doing it does not close the Emacs that I am using to code.

Am I missing something? Is it problematic in some way?

larrasket commented 2 years ago

Hello, I had the same issue. I tried to use emacs-everywhere but it was way too slow I didn't know why. I tried to add a lambada() in a hook to rebind it but never worked as well, however, I was able to find the following workaround at the end

(defun EmacsAnyWhere ()
  (when (string= (buffer-name) "*Emacs Anywhere*")
    (local-set-key (kbd "C-c C-c") #'evil-quit)
    (auto-fill-mode)
    )
  )

(add-hook 'buffer-list-update-hook 'EmacsAnyWhere)

Works great.

QiangF commented 2 years ago

By default, you should use C-c C-k to quit.