Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

EricCrosson/avoid-accidental-termination-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avoid-accidental-termination-mode Build Status Version

Avoid accidentally killing emacs

Install

With Quelpa

(use-package avoid-accidental-termination-mode
  :quelpa (avoid-accidental-termination-mode
           :fetcher github
           :repo "EricCrosson/avoid-accidental-termination-mode"))

Or manually, after downloading into your load-path

(require 'avoid-accidental-termination-mode)

Use

To kill emacs, invoke kill-emacs. Consider binding this to less frequently-used keys.

(evil-leader/set-key
    "qq" 'kill-emacs
    "qQ" 'save-buffers-kill-terminal)

Example

After pressing C-x C-c

Screenshot after pressing C-x C-c

License

GPL 2 (or higher) © Free Software Foundation, Inc.