emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]