flycheck-julia — Flycheck for Julia
Open julia and run the following commands:
Add the following to your configuration:
Installing from a fresh emacs install
Setup your package manager
Add the following to your init file:
(require 'package) (add-to-list 'package-archives '("MELPA Stable" . "https://stable.melpa.org/packages/")) ;; If you want always the latest versions uncomment the following line: ;; (add-to-list 'package-archives '("MELPA" . "https://melpa.org/packages/")) (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")) (package-initialize)
Install the required packages
Restart emacs and run
M-x list-packagesor choose
Options -> Manage Packagesfrom the menu and install
*Packages*buffer you can select packages by pressing
iand install all selected packages by pressing
xor simply use the mouse for interaction.
Configure emacs for the use with
Add the following lines at the end of your init file:
;; loads ess, which contains ess-julia-mode (require 'ess-site) ;; enable flycheck globally (add-hook 'after-init-hook #'global-flycheck-mode) ;; tell flycheck about the julia linter (flycheck-julia-setup)
- Add the following to your
- Restart Emacs, this should automatically install
flycheck-julia.el somewhere and add the following to your init file:
(add-to-list 'load-path "/path/to/directory/containing/flycheck-julia.el/file") (require 'flycheck-julia) (flycheck-julia-setup) (add-to-list 'flycheck-global-modes 'julia-mode) (add-to-list 'flycheck-global-modes 'ess-julia-mode)
If you configured your Emacs with the instructions above, linting
of Julia files should start automatically. If you did not enable
global-flycheck-mode, you can enable linting of Julia files by enabling
Interaction with errors is done through
the manual for
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
See LICENSE for details.