[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 64/117: Add run-hook property
From: |
Matthew Fidler |
Subject: |
[elpa] 64/117: Add run-hook property |
Date: |
Fri, 25 Jul 2014 13:24:17 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 2a2decda6dd93c2748549836ba2cd561f23b9e30
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jul 18 08:38:03 2014 -0500
Add run-hook property
---
ergoemacs-theme-engine.el | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index d5eacc0..3a9bcb1 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -250,6 +250,8 @@
(first :initarg :first
:initform nil
:type boolean)
+ (run-hook :initarg :run-hook
+ :type symbol)
(deferred-keys :initarg :deferred-keys
:initform '()
:type list))
@@ -316,6 +318,7 @@ The elements of LIST are not copied, just the list
structure itself."
unbind-map
always
first
+ run-hook
modify-map
deferred-keys
full-map) obj
@@ -597,6 +600,8 @@ DEF is anything that can be a key's definition:
(first :initarg :first
:initform nil
:type boolean)
+ (run-hook :initarg :run-hook
+ :type symbol)
(always :initarg :always
:initform nil
:type boolean))
@@ -741,6 +746,8 @@ Optionally use DESC when another description isn't found in
`ergoemacs-function-
(first :initarg :first
:initform nil
:type boolean)
+ (run-hook :initarg :run-hook
+ :type symbol)
(fixed :initarg :fixed
:type ergoemacs-fixed-map)
(keymap-hash :initarg :keymap-hash
@@ -964,6 +971,7 @@ Assumes maps are orthogonal."
(defvar ergoemacs-theme-component-maps--always nil)
(defvar ergoemacs-theme-component-maps--first nil)
+(defvar ergoemacs-theme-component-maps--run-hook nil)
(defvar ergoemacs-theme-component-maps--full-map nil)
(defvar ergoemacs-theme-component-maps--modify-map nil)
(defvar ergoemacs-theme-component-maps--global-map nil)
@@ -989,6 +997,8 @@ Assumes maps are orthogonal."
:first ergoemacs-theme-component-maps--first
:full-map ergoemacs-theme-component-maps--full-map
:modify-map ergoemacs-theme-component-maps--modify-map))
+ (when ergoemacs-theme-component-maps--run-hook
+ (oset ret run-hook ergoemacs-theme-component-maps--run-hook))
(if ergoemacs-theme-component-maps--hook
(oset ret hook ergoemacs-theme-component-maps--hook)
(oset ret hook (intern (save-match-data (replace-regexp-in-string
"-map.*\\'" "-hook" (symbol-name keymap))))))
@@ -1825,7 +1835,9 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
(ergoemacs-theme-component-maps--always
(plist-get plist ':always))
(ergoemacs-theme-component-maps--first
- (plist-get plist ':first)))
+ (plist-get plist ':first))
+ (ergoemacs-theme-component-maps--run-hook
+ (plist-get plist ':run-hook)))
(funcall body)))
;;;###autoload
@@ -1834,6 +1846,7 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
(let* ((ergoemacs-theme-component-maps--versions '())
(ergoemacs-theme-component-maps--always nil)
(ergoemacs-theme-component-maps--first nil)
+ (ergoemacs-theme-component-maps--run-hook nil)
(ergoemacs-theme-component-maps--full-map nil)
(ergoemacs-theme-component-maps--modify-map nil)
(ergoemacs-theme-component-maps--global-map nil)
- [elpa] 53/117: Don't error on invalid menu., (continued)
- [elpa] 53/117: Don't error on invalid menu., Matthew Fidler, 2014/07/25
- [elpa] 46/117: Install ergoemacs-read-default for every major mode, Matthew Fidler, 2014/07/25
- [elpa] 54/117: Fix menu keybinding preprocessing, Matthew Fidler, 2014/07/25
- [elpa] 57/117: Add first keyword, and use in minibuffer-setup-hook, Matthew Fidler, 2014/07/25
- [elpa] 60/117: Fix byte-compile warning, Matthew Fidler, 2014/07/25
- [elpa] 62/117: Update ergoemacs-mode-line custom description, Matthew Fidler, 2014/07/25
- [elpa] 61/117: Set ergoemacs-mode-line default to t, Matthew Fidler, 2014/07/25
- [elpa] 63/117: Attempt to fix Issue #278, Matthew Fidler, 2014/07/25
- [elpa] 67/117: Fix Issue #278, Matthew Fidler, 2014/07/25
- [elpa] 59/117: Add ergoemacs-mode-line option, Matthew Fidler, 2014/07/25
- [elpa] 64/117: Add run-hook property,
Matthew Fidler <=
- [elpa] 66/117: Allow keymaps to be copied before modifying them, Matthew Fidler, 2014/07/25
- [elpa] 69/117: Fix Issue #279, Matthew Fidler, 2014/07/25
- [elpa] 70/117: Fix unbound keys test, Matthew Fidler, 2014/07/25
- [elpa] 72/117: Add back emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 71/117: Use flat keymaps (start supporting emacs 23?), Matthew Fidler, 2014/07/25
- [elpa] 73/117: Try to make compatible with emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 74/117: Remove debugging for iswitch-buffer, Matthew Fidler, 2014/07/25
- [elpa] 65/117: Allow hooks to be run before modifying keymaps, Matthew Fidler, 2014/07/25
- [elpa] 75/117: Declare some of the package functions to compile cleanly on Emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 76/117: Add toggle component, Matthew Fidler, 2014/07/25