Re: New Surface computer, several problems
Eli Zaretskii <[email protected]> Wed, 16 Nov 2022 21:24:18 +0200
| Newsgroups | gmane.emacs.windows |
|---|---|
| Message-ID | <[email protected]> |
> From: Allen Windhorn <[email protected]> > Date: Wed, 16 Nov 2022 10:53:55 -0600 > Cc: [email protected] > > > 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.