File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ Possible values are:
63
63
:package-version '(solidity . " 0.1.7" )
64
64
:safe #'symbolp )
65
65
66
+ (defcustom solidity-mode-disable-c-mode-hook t
67
+ " If non-nil, do not run `c-mode-hook' ."
68
+ :group 'solidity
69
+ :type 'boolean )
70
+
66
71
(defvar solidity-mode-map
67
72
(let ((map (make-sparse-keymap )))
68
73
(define-key map " \C -j" 'newline-and-indent )
@@ -542,9 +547,8 @@ Cursor must be at the function's name. Does not currently work for constructors
542
547
(set (make-local-variable 'comment-line-break-function )
543
548
'c-indent-new-comment-line )
544
549
545
- ; ; Do not run `c-mode-hook' .
546
- ; ; See https://github.com/ethereum/emacs-solidity/issues/49.
547
- (set (make-local-variable 'c-mode-hook ) nil )
550
+ (when solidity-mode-disable-c-mode-hook
551
+ (set (make-local-variable 'c-mode-hook ) nil ))
548
552
549
553
; ; set imenu
550
554
(setq imenu-generic-expression
You can’t perform that action at this time.
0 commit comments