branch: scratch/el-mock
commit 06fc9c4cacdd1d7a03716cd2fd2c01e5f3b4df35
Author: Philipp Stephani <[email protected]>
Commit: Philipp Stephani <[email protected]>
Specify language of code blocks explicitly
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 495efde6ed..f34fbc622b 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,12 @@ El mock is a mocking library for Emacs.
## How to use it
Add this to your test-helper, [for
instance](https://github.com/rejeep/prodigy.el/blob/700eb15293260fdfa2fc0cff38df600693b7e4e5/test/test-helper.el#L107-L109)
-```
+```emacs-lisp
(require 'el-mock)
```
An example of a simple mock that displays "/mocked/file/name.el":
-```
+```emacs-lisp
(with-mock
(stub buffer-file-name => "/mocked/file/name.el")
(display-message-or-buffer (buffer-file-name)))