help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Surface computer, several problems


From: Eli Zaretskii
Subject: Re: New Surface computer, several problems
Date: Wed, 16 Nov 2022 21:24:18 +0200

> From: Allen Windhorn <aewindhorn@gmail.com>
> Date: Wed, 16 Nov 2022 10:53:55 -0600
> Cc: help-emacs-windows@gnu.org
> 
> > I don't think I understand what do you mean by "closing the last
> > buffer".  How about if you describe this in terms of Emacs commands or
> > key sequences that you type, and tell at which step would you like
> > Emacs to ask for confirmation.
> 
> Clicking the "X" in the UR corner, or selecting "Exit" on the menu, or
> typing Ctrl-X Ctrl-C, to close the session.

  (defun avoid-accidentally-killing-emacs ()
    (yes-or-no-p "Are you sure you want to exit this session? "))

  (add-hook 'kill-emacs-query-functions
            'avoid-accidentally-killing-emacs)

> > > and (6) I can't double-click a text file and have it open in Emacs any 
> > > more.
> >
> > In File Explorer?  You need to set up Emacs as the default application
> > for TXT files.
> 
> Thanks, I used to know how to do that -- will look into it. Will it
> work with a running Emacs?

Yes.

> Thought there was a daemon needed to be running.

You need to invoke server-start, yes.  And make emacsclientw the
default application for text files.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]