[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 63f665b 153/325: Make calc-bindings work
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 63f665b 153/325: Make calc-bindings work again. |
Date: |
Sat, 23 Oct 2021 18:48:42 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 63f665b2e354142f0db9a17c5e53ba99d3195242
Author: Walter Landry <wlandry@caltech.edu>
Commit: Walter Landry <wlandry@caltech.edu>
Make calc-bindings work again.
---
ergoemacs-functions.el | 12 ++++++++++++
ergoemacs-themes.el | 11 ++---------
2 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 8bc645d..6543e0e 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -99,6 +99,16 @@
'(delete-backward-char delete-char kill-word backward-kill-word)
"Defines deletion functions that ergoemacs is aware of.")
+;;;###autoload
+(defun ergoemacs-undo ()
+ "Run `undo'. If in calc-mode, run `calc-undo'"
+ (interactive)
+ (if (eq major-mode 'calc-mode)
+ (calc-undo 1)
+ (undo)
+ )
+ )
+
(defvar ergoemacs-revert-buffer 0)
(defun ergoemacs-revert-buffer ()
"Ergoemacs replacement of `revert-buffer'.
@@ -2040,6 +2050,8 @@ If in `term-mode', run `term-paste'.
(cond
((eq major-mode 'term-mode)
(term-paste))
+ ((eq major-mode 'calc-mode)
+ (calc-yank nil))
((and isearch-mode ergoemacs-smart-paste (eq last-command
'isearch-yank-kill))
(isearch-yank-pop)
(setq this-command 'isearch-yank-pop))
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index bc9d958..3a94742 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -306,7 +306,7 @@ calling any other ergoemacs-set-* function"
(global-set-key (kbd "C-f") 'isearch-forward)
(define-key isearch-mode-map (kbd "C-f") 'isearch-repeat-forward)
(global-set-key (kbd "C-a") 'mark-whole-buffer)
- (global-set-key (kbd "C-z") 'undo)
+ (global-set-key (kbd "C-z") 'ergoemacs-undo)
(global-set-key (kbd "<S-delete>") 'ergoemacs-cut-line-or-region)
(global-set-key (kbd "<C-insert>") 'ergoemacs-copy-line-or-region)
@@ -411,7 +411,7 @@ calling any other ergoemacs-set-* function"
(ergoemacs-define-key keymap (kbd "M-X") 'ergoemacs-cut-all)
;; Undo
- (ergoemacs-define-key keymap (kbd "M-z") 'undo)
+ (ergoemacs-define-key keymap (kbd "M-z") 'ergoemacs-undo)
(ergoemacs-define-key keymap (kbd "C-S-x") 'execute-extended-command)
(global-set-key (kbd "C-z") 'undo)
@@ -1107,13 +1107,6 @@ calling any other ergoemacs-set-* function"
)
(add-hook 'org-load-hook #'ergoemacs-install-org-bindings)
-(defun ergoemacs-install-calc-bindings ()
- (ergoemacs-define-key calc-mode-map (kbd "M-v") 'calc-yank)
- (ergoemacs-define-key calc-mode-map (kbd "M-z") 'calc-undo)
- )
-(add-hook 'calc-load-hook #'ergoemacs-install-calc-bindings)
-
-
(defun ergoemacs-install-log-edit-bindings ()
(ergoemacs-unset-keys-in-map log-edit-mode-map)
(define-key log-edit-mode-map (kbd "C-s") 'log-edit-done)
- [elpa] externals/ergoemacs-mode 82cba16 070/325: Remove shift selection, (continued)
- [elpa] externals/ergoemacs-mode 82cba16 070/325: Remove shift selection, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 80461f6 118/325: Remove debug statements, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode dc9878c 127/325: Move a whole bunch of bindings into regular functions, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6e2383d 128/325: Put all of the non-mode key bindings into regular functions, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 7c07d8e 136/325: Remove bindings for icicle, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 4c27ce9 141/325: Unset keys in compilation mode, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6bd00c1 148/325: Recent menu sort of works, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode d66bd33 162/325: Fix calc binding for undo and C-f test, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 7145e87 174/325: Fix ergoemacs-move-cursor-previous-pane and ergoemacs-cut-line-or-region, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2f6dcd0 184/325: Remove some translation stuff, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 63f665b 153/325: Make calc-bindings work again.,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode fc84e0e 177/325: Make M-up, down global rather than override keys, so they can be overridden, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2798242 192/325: Remove all of the ERGOEMACS-* environment variables, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a671c6e 196/325: Make theme-describe sort of work, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 0ad1a45 197/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6f340f9 199/325: Change help of a prefix key to 'Prefix Key', Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 977f035 206/325: Fix creating png help images, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fd10f7c 214/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode bef9844 207/325: Remove the Ergoemacs menu, change ? -> Help, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 4bd4660 219/325: Convert component--prompt to layout-prompt, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode e05f951 222/325: Cleanup, Stefan Monnier, 2021/10/23