Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmagnus/emacs-grammarly
an Emacs extension to send a text to/from Grammarly
https://github.com/mmagnus/emacs-grammarly
emacs grammarly
Last synced: 2 months ago
JSON representation
an Emacs extension to send a text to/from Grammarly
- Host: GitHub
- URL: https://github.com/mmagnus/emacs-grammarly
- Owner: mmagnus
- License: gpl-3.0
- Created: 2017-08-30T16:30:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T04:25:38.000Z (almost 4 years ago)
- Last Synced: 2024-08-05T06:06:17.379Z (6 months ago)
- Topics: emacs, grammarly
- Language: Emacs Lisp
- Homepage:
- Size: 55.2 MB
- Stars: 115
- Watchers: 7
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# send-to-osx-grammarly.el
> simple plugin to send text to/from Grammarly [OSX]![](docs/demo.gif)
**Grammarly has to be opened and a new document has to be opened.**
Install Grammarly App (OSX version in this case) https://www.grammarly.com/native/mac
The plugin is using Apple Scripts, thus works only on macOS.
This is a proof of concept. Feel free to send pull requests or fork it.
Read more at https://www.reddit.com/r/emacs/comments/6x0ezx/emacs_grammarly_a_simple_plugin/
## Install
Insert this code into your `.emacs`:
```el
;; load el file in your .emacs, e.g.
(load-file "~/.emacs.d/plugins/send-to-osx-grammarly/send-to-osx-grammarly.el")
```in the plugin code set path to pull and push script, for me this is:
```el
(call-process-shell-command "osascript ~/.emacs.d/plugins/send-to-osx-grammarly/pull.scpt")
```and allow Emacs to use Accessibility (for Apple Scripts):
![](docs/configure.png)
## Keybinding
You can bind key using the following snippets.
```el
(define-key global-map (kbd "C-c C-g h") #'send-to-osx-grammarly-push)
(define-key global-map (kbd "C-c C-g l") #'send-to-osx-grammarly-pull)
```