From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: erin-mode: problem with auto-mode-alist and saving Date: 23 Oct 2015 09:58:01 GMT Message-ID: References: <8737x3xaoo.fsf@hornfels.zedat.fu-berlin.de> <87oafrvt85.fsf@hornfels.zedat.fu-berlin.de> <87zizavxbs.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445594446 10550 80.91.229.3 (23 Oct 2015 10:00:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 10:00:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 12:00:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpZ9A-00055N-Iy for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 12:00:28 +0200 Original-Received: from localhost ([::1]:37403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpZ9A-0006oq-58 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 06:00:28 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net 4Cn3ezdMP5PD2uGoy0ls2gGbsQj/aAfm3EI1y+JFhh7L0TejSU Cancel-Lock: sha1:Z2U6Wkn4jIJix86+DvBYtzvnXtU= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/1.0.1 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:215509 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107794 Archived-At: 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)