diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:16:38 +0200 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:16:38 +0200 |
| commit | 4f25d8b1d79b770363ace16a60a082b6598dc7b3 (patch) | |
| tree | 69ffedab14dd5daeb3ea4882840854a447c97995 /evil-integration.el | |
| parent | d0a41bd516b103df724540e4f08603515477a372 (diff) | |
fix some compilation warnings
Diffstat (limited to 'evil-integration.el')
| -rw-r--r-- | evil-integration.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/evil-integration.el b/evil-integration.el index 08a273b..3d17009 100644 --- a/evil-integration.el +++ b/evil-integration.el @@ -212,13 +212,15 @@ (global-undo-tree-mode 1)) (eval-after-load 'undo-tree - '(progn + '(with-no-warnings (defun evil-turn-on-undo-tree-mode () "Enable `undo-tree-mode' if evil is enabled. This function enables `undo-tree-mode' when Evil is activated in some buffer, but only if `global-undo-tree-mode' is also activated." - (when global-undo-tree-mode (undo-tree-mode 1))) + (when (and (boundp 'global-undo-tree-mode) + global-undo-tree-mode) + (undo-tree-mode 1))) (add-hook 'evil-local-mode-hook #'evil-turn-on-undo-tree-mode) @@ -443,7 +445,8 @@ the mark and entering `recursive-edit'." ;;; nXhtml/mumamo ;; ensure that mumamo does not toggle evil through its globalized mode (eval-after-load 'mumamo - '(push 'evil-mode-cmhh mumamo-change-major-mode-no-nos)) + '(with-no-warnings + (push 'evil-mode-cmhh mumamo-change-major-mode-no-nos))) (provide 'evil-integration) |
