diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2014-09-01 09:40:28 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2014-09-01 09:40:28 +0300 |
commit | d8d3db5c8a8ae73951393ab4abb4a7f46700e052 (patch) | |
tree | 29ec6207822257bdfcdd50859bdeca37d63e168a /cider-util.el | |
parent | a83bd7f21ae5dc360d705a1bcbdab8fc39f93d64 (diff) | |
parent | 63ebbc73073cb8fd733eadb01f88ff9739f0130b (diff) |
Merge pull request #764 from vitoshka/delay-mode-hooks
Fix "making delay-mode-hooks buffer-local" message
Diffstat (limited to 'cider-util.el')
-rw-r--r-- | cider-util.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-util.el b/cider-util.el index 0ad8203b..d891c3fb 100644 --- a/cider-util.el +++ b/cider-util.el @@ -98,9 +98,9 @@ PROP is the name of a text property." (insert string) ;; suppress major mode hooks as we care only about their font-locking ;; otherwise modes like whitespace-mode and paredit might interfere - (let ((delay-mode-hooks t) - (delayed-mode-hooks nil)) - (funcall mode)) + (setq-local delay-mode-hooks t) + (setq delayed-mode-hooks nil) + (funcall mode) (font-lock-fontify-buffer) (buffer-string))) |