emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 259/287: Move saving last closed buffer to ergoemacs-theme


From: Matthew Fidler
Subject: [elpa] 259/287: Move saving last closed buffer to ergoemacs-theme
Date: Wed, 02 Jul 2014 14:46:29 +0000

mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit dfe9a722110a6267d6257d3a1a6b15a29d1c053a
Author: Matthew L. Fidler <address@hidden>
Date:   Mon Jun 30 07:01:22 2014 -0500

    Move saving last closed buffer to ergoemacs-theme
---
 ergoemacs-mode.el   |    2 --
 ergoemacs-themes.el |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ergoemacs-mode.el b/ergoemacs-mode.el
index 1d50418..70df726 100644
--- a/ergoemacs-mode.el
+++ b/ergoemacs-mode.el
@@ -477,7 +477,6 @@ bindings the keymap is:
         (ergoemacs-enable-c-advices)
         (setq ergoemacs-unbind-keys t)
         (add-hook 'pre-command-hook 'ergoemacs-pre-command-hook)
-        (add-hook 'kill-buffer-hook 'ergoemacs-save-buffer-to-recently-closed)
         (ergoemacs-populate-pre-command-hook)
         (ergoemacs-debug-heading "Ergoemacs-mode turned ON."))
     ;; turn off ergoemacs-mode
@@ -499,7 +498,6 @@ bindings the keymap is:
         (when am
           (set am ergoemacs-old-ns-alternate-modifier))))
     (remove-hook 'pre-command-hook 'ergoemacs-pre-command-hook)
-    (remove-hook 'kill-buffer-hook 'ergoemacs-save-buffer-to-recently-closed)
     (ergoemacs-populate-pre-command-hook t)
     ;; Revert `substitute-command-keys' and `completing-read'
     (ergoemacs-enable-c-advices 'disable)
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index d8ee01e..e8af1f8 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -54,6 +54,7 @@
         org-special-ctrl-a/e t
         ido-vertical-define-keys 'C-n-C-p-up-down-left-right
         scroll-error-top-bottom t)
+  (add-hook 'kill-buffer-hook 'ergoemacs-save-buffer-to-recently-closed)
   (undo-tree-mode 1)
   (shift-select-mode t)
   (delete-selection-mode 1)



reply via email to

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