[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 13/287: Activate advices in definitions.
From: |
Matthew Fidler |
Subject: |
[elpa] 13/287: Activate advices in definitions. |
Date: |
Wed, 02 Jul 2014 14:44:11 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 6d0e812f933dba0f11d650adfddaa0d59c5dbf30
Author: Matthew L. Fidler <address@hidden>
Date: Fri May 23 21:55:58 2014 +0800
Activate advices in definitions.
---
ergoemacs-advices.el | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/ergoemacs-advices.el b/ergoemacs-advices.el
index 6ec2ea7..e524476 100644
--- a/ergoemacs-advices.el
+++ b/ergoemacs-advices.el
@@ -158,7 +158,7 @@ Also adds keymap-flag for user-defined keys run with
`run-mode-hooks'."
))
-(defadvice cua-mode (around ergoemacs-activate-only-selection-mode (arg))
+(defadvice cua-mode (around ergoemacs-activate-only-selection-mode (arg)
activate)
"When `ergoemacs-mode' is enabled, enable `cua-selection-mode' instead of
plain `cua-mode'."
(when (and (boundp 'ergoemacs-mode) ergoemacs-mode)
(setq-default cua-enable-cua-keys nil))
@@ -166,9 +166,7 @@ Also adds keymap-flag for user-defined keys run with
`run-mode-hooks'."
(when (and (boundp 'ergoemacs-mode) ergoemacs-mode)
(customize-mark-as-set 'cua-enable-cua-keys)))
-(ad-activate 'cua-mode)
-
-(defadvice icicle-mode (around ergoemacs-icicle-play (arg))
+(defadvice icicle-mode (around ergoemacs-icicle-play (arg) activate)
"Allow `ergoemacs-mode' to play nicely with `icicle-mode'."
(let ((oee (and (boundp 'ergoemacs-mode) ergoemacs-mode)))
(when oee ;; Remove key bindings
@@ -177,8 +175,6 @@ Also adds keymap-flag for user-defined keys run with
`run-mode-hooks'."
(when oee ;; Add them back. Now icy-mode should play nice.
(ergoemacs-mode 1))))
-(ad-activate 'icicle-mode)
-
(defcustom ergoemacs-helm-expand-user-dirs 't
"Expand user directories under helm.
This makes helm behave more like `ido-find-file'"
@@ -187,7 +183,7 @@ This makes helm behave more like `ido-find-file'"
(eval-after-load "helm-files"
'(progn
- (defadvice helm-ff-auto-expand-to-home-or-root (around
ergoemacs-helm-ido-user-dirs)
+ (defadvice helm-ff-auto-expand-to-home-or-root (around
ergoemacs-helm-ido-user-dirs activate)
"Allow `helm-find-files' to expand user directories.
For example ~ergoemacs/ would expand to /usr/ergoemacs or
whatever that points to...
@@ -213,8 +209,7 @@ This require `ergoemacs-mode' to be enabled as well as
(helm-set-pattern input)
(helm-check-minibuffer-input))))
(t
- ad-do-it)))
- (ad-activate 'helm-ff-auto-expand-to-home-or-root)))
+ ad-do-it)))))
(defadvice run-mode-hooks (around ergoemacs-run-hooks activate)
- [elpa] branch externals/ergoemacs-mode updated (a36c916 -> 88c1d95), Matthew Fidler, 2014/07/02
- [elpa] 02/287: Merge branch 'externals/ergoemacs-mode' of git://git.sv.gnu.org/emacs/elpa, Matthew Fidler, 2014/07/02
- [elpa] 05/287: Fix diffs of patch., Matthew Fidler, 2014/07/02
- [elpa] 03/287: Fix some of Stephan's patches., Matthew Fidler, 2014/07/02
- [elpa] 07/287: Gitignore change., Matthew Fidler, 2014/07/02
- [elpa] 08/287: Move ergoemacs-advices, Matthew Fidler, 2014/07/02
- [elpa] 11/287: No longer wrap in unwind-protect, Matthew Fidler, 2014/07/02
- [elpa] 09/287: Took out unknown signatory advice :(. Cleaned up advices., Matthew Fidler, 2014/07/02
- [elpa] 10/287: Took out usless argument to ergoemacs-global-set-key-after, Matthew Fidler, 2014/07/02
- [elpa] 13/287: Activate advices in definitions.,
Matthew Fidler <=
- [elpa] 14/287: Fix `ergoemacs-populate-pre-command-hook', Matthew Fidler, 2014/07/02
- [elpa] 12/287: no-ergoemacs-advice -> ergoemacs-ignore-advice, Matthew Fidler, 2014/07/02
- [elpa] 15/287: Use strinp consp and vectorp, Matthew Fidler, 2014/07/02
- [elpa] 18/287: Load ergoemacs-test for clean ergoemacs-mode load., Matthew Fidler, 2014/07/02
- [elpa] 06/287: Don't use symbol-value, Matthew Fidler, 2014/07/02
- [elpa] 16/287: ergoemacs--key-message, Matthew Fidler, 2014/07/02
- [elpa] 17/287: fix some let bindings., Matthew Fidler, 2014/07/02
- [elpa] 20/287: Add requires for byte-compile, Matthew Fidler, 2014/07/02
- [elpa] 21/287: Remove unused ergoemacs-define-key, Matthew Fidler, 2014/07/02
- [elpa] 22/287: Some cleanups for ergoemacs-setup-translation, Matthew Fidler, 2014/07/02