Skip to content

Commit d6c48a1

Browse files
authored
Merge pull request #40 from LefterisJP/split_into3_melpa_packages
Split into 3 melpa packages
2 parents 62c8495 + 6379ad9 commit d6c48a1

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

README.org

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ with solium >= =v0.2.0=
7676
You have to specifically set the path
7777
to both executables and activate the checker integration by setting the following:
7878

79+
To activate flycheck you need the =solidity-flycheck= package and to add this in your
80+
emacs file:
81+
82+
#+BEGIN_SRC emacs-lisp
83+
(require 'solidity-flycheck)
84+
#+END_SRC
85+
7986
To activate =solc= checker
8087
#+BEGIN_SRC emacs-lisp
8188
(setq solidity-flycheck-solc-checker-active t)
@@ -121,7 +128,12 @@ of the solc checker after which solium will not run. If =t= is given solium will
121128
if anything over than a warning is found in solc solium will not run.
122129

123130
** [Optional] Autocompletion
124-
[[https://github.com/ssmolkin1/company-solidity][company-solidity]], a simple [[http://company-mode.github.io/][company-mode]] back-end for Solidity, has now been fully integrated into solidity-mode. You no longer need to install company-solidity separately from solidity-mode, nor should you do so. To take advantage of the autocompletion features, you must have the [[http://company-mode.github.io/][company-mode]] package installed. The autocompletion features will be enabled automatically if you have company-mode installed.
131+
To achieve solidity autcompletion you will need the =company-solidity= package, a simple [[http://company-mode.github.io/][company-mode]] back-end for Solidity.
132+
To use it make sure that company-mode is installed and then:
133+
134+
#+BEGIN_SRC emacs-lisp
135+
(require 'company-solidity)
136+
#+END_SRC
125137

126138
*** What it does
127139
Give completion suggestions for Solidity keywords, global variables, and address methods.

company-solidity.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; URL: https://github.com/ethereum/emacs-solidity
77
;; Keywords: solidity, completion, company
88
;; Version: 2.0.0
9-
;; Package-Requires: ((company "0.9.0") (cl-lib "0.5.0"))
9+
;; Package-Requires: ((company "0.9.0") (cl-lib "0.5.0") (solidity-mode "0.1.9"))
1010

1111
;; This program is free software; you can redistribute it and/or modify
1212
;; it under the terms of the GNU General Public License as published by

solidity-flycheck.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
;; Copyright (C) 2015-2018 Lefteris Karapetsas
44

55
;; Author: Lefteris Karapetsas <[email protected]>
6-
;; Keywords: languages
6+
;; Keywords: languages, solidity, flycheck
7+
;; Version: 0.1.0
8+
;; Package-Requires: ((flycheck "32-cvs") (solidity-mode "0.1.9"))
79

810
;; This program is free software; you can redistribute it and/or modify
911
;; it under the terms of the GNU General Public License as published by

solidity-mode.el

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright (C) 2015-2018 Lefteris Karapetsas
44

55
;; Author: Lefteris Karapetsas <[email protected]>
6-
;; Keywords: languages
6+
;; Keywords: languages, solidity
77
;; Version: 0.1.9
88

99
;; This program is free software; you can redistribute it and/or modify
@@ -529,13 +529,6 @@ Cursor must be at the function's name. Does not currently work for constructors
529529
;; set hooks
530530
(run-hooks 'solidity-mode-hook))
531531

532-
;;; --- interface with flycheck if existing ---
533-
(when (require 'flycheck nil 'noerror)
534-
(require 'solidity-flycheck))
535-
536-
;;; --- autcompletion back-end for company-mode, loads if company mode is installed ---
537-
(when (require 'company nil 'noerror)
538-
(require 'company-solidity))
539532

540533
(provide 'solidity-mode)
541534
;;; solidity-mode.el ends here

0 commit comments

Comments
 (0)