Skip to content

Commit 775017a

Browse files
committed
Add a command to view the Clojure Grimoire
1 parent 33d7f42 commit 775017a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* New interactive command `clojure-view-guide`.
99
* New interactive command `clojure-view-reference-section`.
1010
* New interactive command `clojure-view-cheatsheet`.
11+
* New interactive command `clojure-view-grimoire`.
1112
* Make the refactoring keymap prefix customizable via `clojure-refactor-map-prefix`.
1213

1314
## 5.5.2 (2016-08-03)

clojure-mode.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ Out-of-the box clojure-mode understands lein, boot and gradle."
263263
["View a Clojure guide" clojure-view-guide]
264264
["View a Clojure reference section" clojure-view-reference-section]
265265
["View the Clojure cheatsheet" clojure-view-cheatsheet]
266+
["View the Clojure Grimoire" clojure-view-grimoire]
266267
"--"
267268
["Report a clojure-mode bug" clojure-mode-report-bug]
268269
["Clojure-mode version" clojure-mode-display-version]))
@@ -375,6 +376,14 @@ The command will prompt you to select one of the available sections."
375376
(interactive)
376377
(browse-url clojure-cheatsheet-url))
377378

379+
(defconst clojure-grimoire-url "https://www.conj.io/"
380+
"The URL of the Grimoire community documentation site.")
381+
382+
(defun clojure-view-grimoire ()
383+
"Open the Clojure Grimoire in your default browser."
384+
(interactive)
385+
(browse-url clojure-grimoire-url))
386+
378387
(defun clojure-space-for-delimiter-p (endp delim)
379388
"Prevent paredit from inserting useless spaces.
380389
See `paredit-space-for-delimiter-predicates' for the meaning of

0 commit comments

Comments
 (0)