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:
6363 :package-version  '(solidity .  " 0.1.7" 
6464 :safe  #'symbolp  )
6565
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+ 
6671(defvar  solidity-mode-map 
6772 (let  ((map  (make-sparse-keymap )))
6873 (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
542547 (set  (make-local-variable  'comment-line-break-function )
543548 'c-indent-new-comment-line )
544549
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 ))
548552
549553 ; ; set imenu
550554 (setq  imenu-generic-expression
                         You can’t perform that action at this time. 
           
                  
0 commit comments