|
10 | 10 | ;; Created: August 01 2007 |
11 | 11 | ;; Keywords: convenience |
12 | 12 | ;; Version: 5.16.10.12 |
13 | | -;; Package-Requires: ((emacs "24.1") (cl-lib "0.5") (nadvice "0.1")) |
| 13 | +;; Package-Requires: ((emacs "24.1") (cl-lib "0.5") (nadvice "0.4")) |
14 | 14 | ;; URL: https://github.com/ergoemacs/ergoemacs-mode |
15 | 15 |
|
16 | 16 | ;; ErgoEmacs is free software: you can redistribute it and/or modify |
@@ -471,16 +471,14 @@ after initializing ergoemacs-mode. |
471 | 471 | (ergoemacs-mode-regular . ,ergoemacs-keymap) |
472 | 472 | (ergoemacs-mode-send-emacs-keys . ,ergoemacs--send-emacs-keys-map))) |
473 | 473 | (add-hook 'emulation-mode-map-alists ergoemacs-override-alist) |
474 | | - (when (version<= "24.4" emacs-version) |
475 | | - (advice-add 'undefined :around #'ergoemacs-advice-undefined) |
476 | | - (advice-add 'read-key :around #'ergoemacs-read-key))) |
| 474 | + (advice-add 'undefined :around #'ergoemacs-advice-undefined) |
| 475 | + (advice-add 'read-key :around #'ergoemacs-read-key)) |
477 | 476 |
|
478 | 477 | (defun ergoemacs-remove-override-keymap () |
479 | 478 | "Remove `ergoemacs-mode' keymaps." |
480 | 479 | (remove-hook 'emulation-mode-map-alists 'ergoemacs-override-alist) |
481 | | - (when (version<= "24.4" emacs-version) |
482 | | - (advice-remove 'undefined #'ergoemacs-advice-undefined) |
483 | | - (advice-remove 'read-key #'ergoemacs-read-key))) |
| 480 | + (advice-remove 'undefined #'ergoemacs-advice-undefined) |
| 481 | + (advice-remove 'read-key #'ergoemacs-read-key)) |
484 | 482 |
|
485 | 483 |
|
486 | 484 | ;;; Frequently used commands as aliases |
|
0 commit comments