[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: erin-mode: problem with auto-mode-alist and saving
From: |
Joost Kremers |
Subject: |
Re: erin-mode: problem with auto-mode-alist and saving |
Date: |
23 Oct 2015 09:58:01 GMT |
User-agent: |
slrn/1.0.1 (Linux) |
Loris Bennett wrote:
> https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
>
> it says you can do the following
>
> (setq edit-server-url-major-mode-alist
> '(("github\\.com" . markdown-mode)))
>
> This more or less works for me. If I save the emacs buffer, the
> contents are written back to the edit field in the browser, but the mode
> switches back to 'text', and emacs hangs. If I then do 'C-g', the mode
> goes back to my chosen one. So it's slightly broken, but functional.
I'm pretty sure with edit-server.el you're not really supposed to save
the buffer. Just type `C-x #` when you're done editing. That'll send the
contents of the buffer to Chrome and kill the buffer.
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)