added some blurbs about flycheck external syntax checkers
This commit is contained in:
parent
f90fdf7670
commit
0bb3cadd93
15
conf.org
15
conf.org
|
@ -549,7 +549,7 @@ Additionally, I want to automatically highlight errors whenever =flyspell-mode=
|
||||||
;; (add-hook 'flyspell-mode-hook 'flyspell-buffer)
|
;; (add-hook 'flyspell-mode-hook 'flyspell-buffer)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** syntax checking
|
*** syntax checking
|
||||||
Flycheck will highlight and explain syntax errors in code and formatting.
|
Flycheck will highlight and explain syntax errors in code and formatting. See each language below for external tools that need to be installed to make flycheck work to the fullest.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -626,9 +626,8 @@ Elisp can use vanilla company with no plugins
|
||||||
*** ESS (Emacs Speaks Statistics)
|
*** ESS (Emacs Speaks Statistics)
|
||||||
For me this means R but ess also supports S-plus, SAS, Stata, and other statistical black-magic languages. Note that ESS is not part of =prog-mode= so it must be added manually to hooks.
|
For me this means R but ess also supports S-plus, SAS, Stata, and other statistical black-magic languages. Note that ESS is not part of =prog-mode= so it must be added manually to hooks.
|
||||||
|
|
||||||
A few caveats when using =R=
|
Flycheck syntax checkers
|
||||||
- =ess-mode= requires a running R process for =company-mode= to work
|
- r-lintr (install from CRAN)
|
||||||
- =flycheck-mode= requries =r-lintr=
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun nd/init-ess-company ()
|
(defun nd/init-ess-company ()
|
||||||
"Set the company backends for ess modes."
|
"Set the company backends for ess modes."
|
||||||
|
@ -654,6 +653,9 @@ A few caveats when using =R=
|
||||||
ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/")))
|
ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/")))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Python
|
*** Python
|
||||||
|
Flycheck syntax checkers to install (either globally or using =pip=)
|
||||||
|
- flake8
|
||||||
|
- python-pylint
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package elpy
|
(use-package elpy
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
@ -718,6 +720,7 @@ The defacto style for haskell mandates camelcase, so use subword mode.
|
||||||
(delight 'subword-mode nil "subword")
|
(delight 'subword-mode nil "subword")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Lua
|
*** Lua
|
||||||
|
For flycheck, install =luacheck= (from AUR on Arch).
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package lua-mode
|
(use-package lua-mode
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
@ -888,6 +891,10 @@ This adds support for csv files. Almost makes them editable like a spreadsheet.
|
||||||
(use-package pkgbuild-mode
|
(use-package pkgbuild-mode
|
||||||
:ensure t)
|
:ensure t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** Unix Shell
|
||||||
|
No custom code here, but flycheck needs =shellcheck= (a Haskell program). On Arch (or any other distro that loves dynamic binding) easiest way to install is via =stack install ShellCheck=
|
||||||
|
*** SQL
|
||||||
|
No custom code here, but flycheck needs =sqlint= (on Arch available through the AUR).
|
||||||
* org-mode
|
* org-mode
|
||||||
** low-level config
|
** low-level config
|
||||||
*** modules
|
*** modules
|
||||||
|
|
Loading…
Reference in New Issue