[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 204/287: Allow ergoemacs-key to work outside of themes again
From: |
Matthew Fidler |
Subject: |
[elpa] 204/287: Allow ergoemacs-key to work outside of themes again |
Date: |
Wed, 02 Jul 2014 14:46:00 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 00d82af75c1de6dfe26c9fb69fa63d286f91c8db
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jun 23 22:04:04 2014 +0800
Allow ergoemacs-key to work outside of themes again
---
ergoemacs-theme-engine.el | 31 +++++++++++++++++++------------
1 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 94b743b..3787c13 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -2335,22 +2335,29 @@ When SILENT is true, also include silent themes"
(defun ergoemacs-key (key function &optional desc only-first fixed-key)
"Defines KEY in ergoemacs keyboard based on QWERTY and binds to FUNCTION.
DESC is ignored, as is FIXED-KEY."
- (let* ((key (or
- (and (vectorp key) key)
- (read-kbd-macro key t)))
- (ergoemacs-force-just-first only-first)
- (ergoemacs-force-variable t))
- (ergoemacs-define-key 'global-map key function)))
+ (if (ergoemacs-theme-component-maps-p
ergoemacs-theme-component-maps--curr-component)
+ (let* ((key (or
+ (and (vectorp key) key)
+ (read-kbd-macro key t)))
+ (ergoemacs-force-just-first only-first)
+ (ergoemacs-force-variable t))
+ (ergoemacs-define-key 'global-map key function))
+ (warn "ergoemacs-key is depreciated, use global-set-key instead.")
+ (global-set-key (ergoemacs-kbd key nil only-first) function)))
(defun ergoemacs-fixed-key (key function &optional desc)
"Defines fixed KEY in ergoemacs and binds to FUNCTION.
Ignores DESC."
- (let* ((key (or
- (and (vectorp key) key)
- (read-kbd-macro key t)))
- (ergoemacs-force-just-first nil)
- (ergoemacs-force-fixed t))
- (ergoemacs-define-key 'global-map key function)))
+ (if (ergoemacs-theme-component-maps-p
ergoemacs-theme-component-maps--curr-component)
+ (let* ((key (or
+ (and (vectorp key) key)
+ (read-kbd-macro key t)))
+ (ergoemacs-force-just-first nil)
+ (ergoemacs-force-fixed t))
+ (ergoemacs-define-key 'global-map key function))
+ (warn "ergoemacs-fixed-key is depreciated, use global-set-key instead.")
+ (global-set-key (if (vectorp key) key
+ (read-kbd-macro key)) function)))
(provide 'ergoemacs-theme-engine)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- [elpa] 286/287: Another issue With #255, (continued)
- [elpa] 286/287: Another issue With #255, Matthew Fidler, 2014/07/02
- [elpa] 287/287: v5.14.07 - Changed theme definitions - Allow variables to be set in theme definitions, will be changed when variable exists. - Add Esperanto Layouts (Thanks to akfoss) - Fixed many menu issues (thanks to akfoss for pointing out) - Added travis support - Fixed ergoemacs-layout-programmer-dv (Thanks to bmalhorn) - Dropped support for Emacs 23 - Dropped various themes, plan on repackaging them separately. - Added support for locate-mode in `ergoemacs-open-in-external-app` (thanks to guoci) - Added standard Norweigian QWERTY layout (Thanks to oegly) - Changed ergoemacs-style key translation to be more ubiquitous by changing substitute-command-keys and other advices, Matthew Fidler, 2014/07/02
- [elpa] 103/287: Attempt to restore last test engine and make cask use it, Matthew Fidler, 2014/07/02
- [elpa] 131/287: Be more careful in error checking for ergoemacs-rm-key, Matthew Fidler, 2014/07/02
- [elpa] 126/287: Documentation update., Matthew Fidler, 2014/07/02
- [elpa] 108/287: Removed stray saved variables, Matthew Fidler, 2014/07/02
- [elpa] 136/287: Fix Makefile to have test-dir, Matthew Fidler, 2014/07/02
- [elpa] 102/287: Require the libraries that may be needed..., Matthew Fidler, 2014/07/02
- [elpa] 128/287: Fix byte compile issues and remove gaia., Matthew Fidler, 2014/07/02
- [elpa] 139/287: Make TEST_DIR first, Matthew Fidler, 2014/07/02
- [elpa] 204/287: Allow ergoemacs-key to work outside of themes again,
Matthew Fidler <=
- [elpa] 141/287: Add back ergoemacs-fixed-key and ergoemacs-key compatability., Matthew Fidler, 2014/07/02
- [elpa] 200/287: Declare undo-tree, Matthew Fidler, 2014/07/02
- [elpa] 111/287: No compiler warnings for ergoemacs-menus.el, Matthew Fidler, 2014/07/02
- [elpa] 112/287: Fix last compiler issue for ergoemacs-menus.el, Matthew Fidler, 2014/07/02
- [elpa] 91/287: All tests pass; ido-vertical doesn't have right keys, Matthew Fidler, 2014/07/02
- [elpa] 118/287: Move macros from ergoemacs-theme-engine, Matthew Fidler, 2014/07/02
- [elpa] 124/287: Refactor ergoemacs-open-in-external-app, Matthew Fidler, 2014/07/02
- [elpa] 138/287: Make the test directory., Matthew Fidler, 2014/07/02
- [elpa] 109/287: Add ergoemacs-macros for all macros., Matthew Fidler, 2014/07/02
- [elpa] 121/287: Remove cl dependence for ergoemacs-theme-engine.el, Matthew Fidler, 2014/07/02