ethereum / emacs-solidity

The official solidity-mode for EMACS
GNU General Public License v3.0
206 stars 66 forks source link

Indent code error #38

Open ZhangJianAo opened 6 years ago

ZhangJianAo commented 6 years ago

After install solidity mode, press tab to indent code, it's not working and show follow error message:

Error evaluating offset + for defun-block-intro: Got invalid value tab-width

Using c-c c-o (c-set-offset) to set defun-block-intro to a number other than '+', it's working.

LefterisJP commented 6 years ago

Hello @ZhangJianAo. This sounds like a problem with your Emacs setup. What is the value of tab-width when you are inside an emacs solidity buffer? You can check it with C-h-v tab-width