Skip to content

Commit e9f742e

Browse files
author
Bozhidar Batsov
committed
Use #' when appropriate
1 parent b1b0670 commit e9f742e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ names. The built-in Emacs minor mode `subword-mode` provides such
100100
functionality:
101101

102102
```el
103-
(add-hook 'clojure-mode-hook 'subword-mode)
103+
(add-hook 'clojure-mode-hook #'subword-mode)
104104
```
105105

106106
* The use of [paredit][] when editing Clojure (or any other Lisp) code
@@ -110,7 +110,7 @@ structure at a higher level than just characters and words. To enable
110110
it for Clojure buffers:
111111

112112
```el
113-
(add-hook 'clojure-mode-hook 'paredit-mode)
113+
(add-hook 'clojure-mode-hook #'paredit-mode)
114114
```
115115

116116
* [smartparens][] is an excellent
@@ -119,7 +119,7 @@ it for Clojure buffers:
119119
`smartparens` use the following code:
120120

121121
```el
122-
(add-hook 'clojure-mode-hook 'smartparens-strict-mode)
122+
(add-hook 'clojure-mode-hook #'smartparens-strict-mode)
123123
```
124124

125125
* [RainbowDelimiters][] is a
@@ -131,7 +131,7 @@ it for Clojure buffers:
131131
enable it like this:
132132

133133
```el
134-
(add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
134+
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode)
135135
```
136136

137137
## REPL Interaction

clojure-mode.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ ENDP and DELIMITER."
247247
(imenu--generic-function '((nil clojure-match-next-def 0)))))
248248
(setq-local indent-tabs-mode nil)
249249
(lisp-mode-variables nil)
250-
(setq fill-paragraph-function 'clojure-fill-paragraph)
251-
(setq adaptive-fill-function 'clojure-adaptive-fill-function)
252-
(setq-local normal-auto-fill-function 'clojure-auto-fill-function)
250+
(setq fill-paragraph-function #'clojure-fill-paragraph)
251+
(setq adaptive-fill-function #'clojure-adaptive-fill-function)
252+
(setq-local normal-auto-fill-function #'clojure-auto-fill-function)
253253
(setq-local comment-start-skip
254254
"\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")
255-
(setq-local indent-line-function 'clojure-indent-line)
256-
(setq-local lisp-indent-function 'clojure-indent-function)
255+
(setq-local indent-line-function #'clojure-indent-line)
256+
(setq-local lisp-indent-function #'clojure-indent-function)
257257
(setq-local lisp-doc-string-elt-property 'clojure-doc-string-elt)
258258
(setq-local parse-sexp-ignore-comments t)
259259
(setq-local prettify-symbols-alist clojure--prettify-symbols-alist)
@@ -266,7 +266,7 @@ ENDP and DELIMITER."
266266
\\{clojure-mode-map}"
267267
(clojure-mode-variables)
268268
(clojure-font-lock-setup)
269-
(add-hook 'paredit-mode-hook 'clojure-paredit-setup))
269+
(add-hook 'paredit-mode-hook #'clojure-paredit-setup))
270270

271271
(defsubst clojure-in-docstring-p ()
272272
"Check whether point is in a docstring."

0 commit comments

Comments
 (0)