summaryrefslogtreecommitdiff
path: root/.dir-locals.el
Commit message (Collapse)AuthorAge
* [emacs] .dir-locals.el: add Language Server Protocol Support (LSP)Markus Heiser2023-02-11
| | | | | | Add LSP and update comment strings for full fledge developer tools. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [fix] typos / reported by @kianmeng in searx PR-3366Markus Heiser2022-09-27
| | | | | | [PR-3366] https://github.com/searx/searx/pull/3366 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] flycheck should use the eslint checker from developer toolsMarkus Heiser2022-01-24
| | | | | | | Since commit cac03529 the eslint has been moved from the local nvm to the developer packages (in `./node_modules`). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] .dir-locals.el: activate pyright in python-modeMarkus Heiser2022-01-23
| | | | | | | | | | | | To get in use of pyright type cheker in Emacs, a pyright installation [1] is needed and in Emacs the lsp-pyright package has to be installed:: M-x package-install lsp-pyright [1] https://github.com/Microsoft/pyright [2] https://github.com/emacs-lsp/lsp-pyright Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] .dir-locals.el: in json-mode use indentation of 4Markus Heiser2021-12-14
| | | | | | In JS + JSON we use indentation of 4. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] .dir-locals.el: use jinja2-mode to format html filesMarkus Heiser2021-11-23
| | | | | | | | | | | The jinja2-mode [1] can be installed from melpa [2]:: M-x package-install / jinja2-mode [1] https://github.com/paradoxxxzero/jinja2-mode [2] https://melpa.org/#/jinja2-mode Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] NVM: dev-tools pre-installed in NVM's node installationMarkus Heiser2021-11-20
| | | | | | | | | | | | | | | | | | The Node.js installation in the NVM environment can be used by IDEs and other developer tasks. The required developer packagaes are added to the file ./.nvm_packages and will be installed when Node.js is installed. Initial we start with: - eslint Having a dedicated developer enviroment, provided by nvm makes it easy to integrate Node.js packages into various IDEs. One example is shown in the .dir-locals.el which is used by emacs. [1] https://github.com/nvm-sh/nvm#default-global-packages-from-file-while-installing [2] https://eslint.org Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] use NVM environment installed at nvm-dir <repo>/.nvmMarkus Heiser2021-11-20
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] simple theme - add ESLintMarkus Heiser2021-08-31
| | | | | | | | [1] https://eslint.org/ [2] https://eslint.org/docs/user-guide/configuring/ [3] https://eslint.org/docs/user-guide/command-line-interface Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] .dir-locals.el: add setup for js-modeMarkus Heiser2021-06-24
| | | | | | | | | - move jshint option from gruntfile to .jshintrc - remove trailing-whitespace from gruntfile and - add jshint esversion: 6 - .dir-locals.el add locals for js-mode to use JSHint from the simple theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] .dir-locals.el: add setup for json-modeMarkus Heiser2021-06-22
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] clean up .dir-locals.el fileMarkus Heiser2021-06-11
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] flycheck - activate yamllint and use .yamllint.ymlMarkus Heiser2021-06-05
| | | | | | | | | | | | | Open YAML file and use: M-x flycheck-mode Since we use yamllint from local/py3/bin, creating a virtualenv is a prerequisite: make pyenv Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [emacs] don't use tabs, except in makefile-gmake-modeMarkus Heiser2021-05-17
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* [mod] remove obsolete virtualenv commandMarkus Heiser2020-12-18
| | | | | | | | Installation and use of the command 'virtualenv' was only needed in py2 and py2 is no longer suported by searx. In py3 the command is replaced by 'python -m venv'. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* .dir-locals.el: add some comments about jedi & EPCMarkus Heiser2019-11-29
| | | | Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* boilerplate: add .dir-locals.el with emacs python enviromentMarkus Heiser2019-11-28
The .dir-locals.el set the project's python enviroment for the emacs tasks like flycheck or jedi. The py-environment has to be next to <repo>/.dir-locals.el:: ./local/py3 To setup such an environment build target 'pyenv' or 'pyenvinstall':: $ make pyenvinstall TL;DR Alternatively create the virtualenv, source it and install jedi + epc (required by `emacs-jedi <https://tkf.github.io/emacs-jedi>`_):: $ virtualenv --python=python3 "--no-site-packages" ./local/py3 ... $ source ./local/py3/bin/activate (py3)$ # now install into the activated 'py3' environment .. (py3)$ pip install jedi epc ... Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>