Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

LangTool wrapper that halps to use LT with Emacs's compilation-mode

Project description

PyLangTool

PyLangTool — a simple wrapper for the LanguageTool. It wraps langtool CLI and formates langtool's output in a manner, that compatible with Emacs's compilation-mode.

Emacs integration

(defun langtool-check-buffer ()
  "Checks current file buffer with LnagTool"
  (interactive)
  (let ((fn (expand-file-name (buffer-file-name (current-buffer)))))
    (switch-to-buffer-other-window
     (generate-new-buffer "*spellcheck*"))
    (insert-string (shell-command-to-string (format "pylangtool %s" fn)))
    (compilation-mode)))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pylangtool, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pylangtool-0.1.1-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pylangtool-0.1.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page