[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 30/35: Delete Frame/Close Emacs for Alt+f4
From: |
Matthew Fidler |
Subject: |
[elpa] 30/35: Delete Frame/Close Emacs for Alt+f4 |
Date: |
Fri, 11 Jul 2014 22:33:31 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 16635db5461a4a925301b3221b0938ae662e4ebf
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jul 11 07:08:27 2014 -0500
Delete Frame/Close Emacs for Alt+f4
---
ergoemacs-functions.el | 8 ++++++++
ergoemacs-themes.el | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index e430661..f4efb98 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -1273,6 +1273,14 @@ Emacs buffers are those whose name starts with *."
(funcall (and initial-major-mode))
(setq buffer-offer-save t)))
+(defun ergoemacs-delete-frame ()
+ "Deletes frame or closes emacs (with prompt)."
+ (interactive)
+ (unless (ignore-errors (call-interactively 'delete-frame))
+ (when (yes-or-no-p "Do you wish to Close Emacs? ")
+ ;; Bound to C-x C-c
+ (save-buffers-kill-terminal))))
+
(defcustom ergoemacs-maximum-number-of-file-to-open 5
"Maximum number of files to open.
If less than or equal to zero, there is no limit."
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index 23e5adc..8cb6371 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -279,7 +279,7 @@
;; Ergoemacs fixed keys...
- (global-set-key (kbd "<M-f4>") 'delete-frame) ;; Alt+f4 should work.
+ (global-set-key (kbd "<M-f4>") 'ergoemacs-delete-frame) ;; Alt+f4 should
work.
; Alt+→
(global-set-key (kbd "<M-up>") 'ergoemacs-backward-block) ; Alt+↑
- [elpa] 21/35: Add load path to batch byte compile, (continued)
- [elpa] 21/35: Add load path to batch byte compile, Matthew Fidler, 2014/07/11
- [elpa] 22/35: Fix byte compile warning, Matthew Fidler, 2014/07/11
- [elpa] 23/35: Start modal shift-select (Issue #215), Matthew Fidler, 2014/07/11
- [elpa] 24/35: Fix keys on web-page, Matthew Fidler, 2014/07/11
- [elpa] 18/35: Fix Issue #270, Matthew Fidler, 2014/07/11
- [elpa] 15/35: Misc Code Cleanup, Matthew Fidler, 2014/07/11
- [elpa] 27/35: Use pr-interface when available, Matthew Fidler, 2014/07/11
- [elpa] 25/35: Fix Issue #271, Matthew Fidler, 2014/07/11
- [elpa] 26/35: Should display the correct key now., Matthew Fidler, 2014/07/11
- [elpa] 28/35: Another attempt to fix the webpage, Matthew Fidler, 2014/07/11
- [elpa] 30/35: Delete Frame/Close Emacs for Alt+f4,
Matthew Fidler <=
- [elpa] 29/35: Fix webpage (tested works), Matthew Fidler, 2014/07/11
- [elpa] 32/35: browse-kill-ring-mode no longer needs work-around, Matthew Fidler, 2014/07/11
- [elpa] 31/35: ergoemacs-keyboard-quit calls 【q】 when applicable, Matthew Fidler, 2014/07/11
- [elpa] 35/35: v5.14.7.2 - Removed ergoemacs-pushnew, and use add-to-list for variables that are defined with defvar (Allows work-around of calling adjoin at runtime for emacs 24.1; Thaks to Stefan Monnier for pointing this out). - Expanded ã€ESC】 to exit modes that use ã€q】 for quitting the current operation. This includes many packages like magit and browse-kill-ring. - Expanded ã€Alt+f4】 to close the current frame when it is the only frame present. - Added Recent files menu that includes Open Last Closed ã€Ctl+⇧Shift+T】. - Changed ergoemacs-mode printing to use printing package when available. The file-menu has been replaced - The default theme is now selected automatically (Issue #269) - Show goto-line as ã€Ctl+L】, although the test doesn't work (Issue #265) - Added an option to move lines up and down with ã€Alt+up】, ã€Alt+down】 like Gedit (See #266) - Changed the emacs startup messages to reflect emacs keys (#267) - Other miscellaneous cleanups and fixes, Matthew Fidler, 2014/07/11
- [elpa] 34/35: The translations will fail :(, Matthew Fidler, 2014/07/11
- [elpa] 33/35: Defined variables use add-to-list otherwise pushnew, Matthew Fidler, 2014/07/11