all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Fishman <barry_fishman@acm.org>
To: help-gnu-emacs@gnu.org
Subject: Re: starting the emacs daemon using init.org?
Date: Mon, 20 Jul 2015 08:42:28 -0400	[thread overview]
Message-ID: <m3egk3ov9n.fsf@barry_fishman.acm.org> (raw)
In-Reply-To: mailman.7173.1437391698.904.help-gnu-emacs@gnu.org


On 2015-07-20 12:28:26 +0100, Sharon Kimble wrote:
> Emanuel Berg <embe8573@student.uu.se> writes:
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> I've been thinking about running emacs as a daemon
>>> to quicken my loadup times and also able to recover
>>> quickly when emacs crashes and restarts. But how?
>>     1. Does your Emacs really take that long to start?
>
> 'fraid so! I've never actually timed it, but I am sitting waiting for it
> to be in a useable state.
>>
>>     2. In which situations does it crash?
>
> Usually when I'm writing in latex, and suddenly, in the blink of an eye,
> its gone! So far I haven't lost any data on restarting. but it is an
> annoyance.

I can't remember the last time Emacs crashed on me.  I do tend to have
issues with mistyping so I have disabled my most common reasons for my
Emacs to disappear.  First I never need to background Emacs from the
keyboard:

;;; Re-establish C-z prefix
(defvar my-control-map (make-sparse-keymap))
(define-key global-map [(control z)] my-control-map)

With gives me another key to put my own bindings.  I then make sure
any C-x C-c isn't an accident:

;;; Require confirmation and rebind C-x C-c appropriately
(defun my-exit-from-emacs ()
  (interactive)
  (if (yes-or-no-p "Do you want to exit ")
      (save-buffers-kill-terminal)))
(define-key global-map [(control x) (control c)] 'my-exit-from-emacs)

Since disappearing is common enough to be an issue you might try to
investigate further with the usual:

(setq debug-on-error t)
(setq debug-on-quit t)
(setq debug-on-signal t)

to find out what is really happening, and consider making a bug report.

--
Barry Fishman


  parent reply	other threads:[~2015-07-20 12:42 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-19 20:19 starting the emacs daemon using init.org? Sharon Kimble
2015-07-19 23:20 ` Emanuel Berg
2015-07-20 11:28   ` Sharon Kimble
2015-07-20 13:41     ` Marcin Borkowski
2015-07-20 14:20       ` Subhan Michael Tindall
2015-07-20 17:29         ` Sharon Kimble
2015-07-20 17:36           ` Paul Smith
2015-07-20 17:46             ` John Mastro
2015-07-20 18:41               ` Marcin Borkowski
2015-07-23  7:40                 ` Eric S Fraga
2015-07-23 13:40                   ` Grant Rettke
     [not found]                 ` <mailman.7294.1437640616.904.help-gnu-emacs@gnu.org>
2015-07-23  9:00                   ` Rusi
     [not found]             ` <mailman.7190.1437414422.904.help-gnu-emacs@gnu.org>
2015-07-23  1:46               ` Rusi
2015-07-20 19:19           ` Sharon Kimble
2015-07-21 15:08             ` Startup time [Was: starting the emacs daemon using init.org?] Ian Zimmerman
     [not found]             ` <mailman.7228.1437491341.904.help-gnu-emacs@gnu.org>
2015-07-21 15:28               ` Pascal J. Bourguignon
2015-07-21 19:05                 ` Marcin Borkowski
2015-07-21 21:10                 ` Emanuel Berg
2015-07-21 18:19               ` Robert Marshall
2015-07-20 23:45       ` starting the emacs daemon using init.org? Emanuel Berg
2015-07-20 23:35     ` Emanuel Berg
     [not found]   ` <mailman.7173.1437391698.904.help-gnu-emacs@gnu.org>
2015-07-20 12:42     ` Barry Fishman [this message]
2015-07-20 12:57       ` Rusi
2015-07-20 19:23         ` Sharon Kimble
2015-07-21 13:17           ` Robert Thorpe
2015-07-20 13:40       ` Marcin Borkowski
2015-07-20  3:03 ` Ian Zimmerman
2015-07-20 11:25   ` Sharon Kimble
2015-07-20 14:30     ` Ian Zimmerman
2015-07-20 14:54       ` Paul Smith
2015-07-20 15:43         ` Óscar Fuentes
2015-07-20 16:39           ` Paul Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3egk3ov9n.fsf@barry_fishman.acm.org \
    --to=barry_fishman@acm.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.