Skip to content

Commit 0e3dbb6

Browse files
committed
Add readme info and changelog entry
1 parent 41afbab commit 0e3dbb6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.org

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ Regardless of where you installed solidity mode from, you need to require the pa
3030
#+END_SRC
3131
(append that line to your =~/.emacs= file)
3232

33+
You can also set the way the comments are inserted by emacs with commands like =comment-region=. The default is
34+
=/* .. */= and you can turn it to using =//= instead by putting the following into your emacs config:
35+
36+
#+BEGIN_SRC lisp
37+
(setq solidity-comment-style 'slash)
38+
;; or
39+
(setq solidity-comment-style 'star) ;; this is the default
40+
#+END_SRC
41+
3342
** Keymap
3443
You can modify the default keybindings of the solidity mode keymap by adding
3544
a new key combination for each command you want to change. For example

changelog.MD

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
The changelog starts from version 0.1.4 as too much was added in each version before that.
44

5+
## Version 0.1.7
6+
7+
- Allow for customization of the way that emacs inserts comments into the source file via
8+
9+
```emacs-lisp
10+
(setq solidity-comment-style 'slash)
11+
;; or
12+
(setq solidity-comment-style 'star) ;; this is the default
13+
```
14+
515
## Version 0.1.6
616

717
- Add gas estimation code. User facing function is `solidity-estimate-gas-at-point`.

0 commit comments

Comments
 (0)