diff options
author | Tom Willemse | 2016-06-10 14:46:24 +0200 |
---|---|---|
committer | Tom Willemse | 2016-06-10 14:46:24 +0200 |
commit | 390d8b2cc8570146b802440f260826900f2dbd1d (patch) | |
tree | 0165eccfdd9348cd4fe3e66e1429d4cfe9e058f0 | |
parent | cb337a15d1ea56b08321cb857d8d2d28701849fb (diff) | |
download | dotfiles-390d8b2cc8570146b802440f260826900f2dbd1d.tar.gz dotfiles-390d8b2cc8570146b802440f260826900f2dbd1d.zip |
Fix possible compiler warning when excluding modes
-rw-r--r-- | emacs/.emacs.d/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 24a31f2..a4bab9a 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -122,7 +122,8 @@ MODE1 is enabled and vice-versa." (defun ,function-name () ,(concat "Toggle `" mode2-name "' according to the inverse of `" mode1-name "'.") - (,mode2 (or (not ,mode1) -1))) + (let ((mode ',mode2)) + (funcall mode (or (not ,mode1) -1)))) (add-hook ',(intern (concat mode1-name "-hook")) #',function-name)))) |