From d89c8300dffbd2a2069b6d63543d8645c4dfe2b8 Mon Sep 17 00:00:00 2001 From: Tianxiang Xiong Date: Sun, 16 Jul 2017 19:19:40 -0700 Subject: [PATCH] Use `view-mode` for `cider-grimoire` buffer Fixes #2049. --- CHANGELOG.md | 1 + cider-grimoire.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9289b793d..dbf368e97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### New Features +* [#2050](https://github.com/clojure-emacs/cider/pull/2050) Use `view-mode` for `cider-grimoire` buffers * Filter stacktrace to just frames from your project. * [#1918](https://github.com/clojure-emacs/cider/issues/1918): Add new commands `cider-browse-spec` and `cider-browse-spec-all` which start a spec browser. * [#2015](https://github.com/clojure-emacs/cider/pull/2015): Show symbols as special forms *and* macros in `cider-doc` diff --git a/cider-grimoire.el b/cider-grimoire.el index e7d993b1f..8dc617338 100644 --- a/cider-grimoire.el +++ b/cider-grimoire.el @@ -86,7 +86,7 @@ opposite of what that option dictates." (cider-popup-buffer-mode 1) (when (fboundp 'markdown-toggle-fontify-code-blocks-natively) (markdown-toggle-fontify-code-blocks-natively 1))) - (read-only-mode +1) + (view-mode 1) (goto-char (point-min)) (current-buffer)))