Skip to content

An Emacs minor mode for formatting Mardown with one sentence per line

Notifications You must be signed in to change notification settings

arrdem/ospl-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ospl-mode

A fill.el extension for formatting Markdown allowing only one sentence per line.

demo

Usage

This is alpha grade software - it works on my machine and for my purposes but may not work on yours. I suggest vendoring this package as a git dep, or just by copying the ospl-mode.el file for the time being.

PRs to set up MELPA deployment or such welcomed.

For those of you using use-package.el,

;; Or wherever you checkec the repo out to
(add-to-list 'load-path (expand-file-name "~/.emacs.d/local/ospl-mode))

(use-package 'ospl-mode)

(use-package markdown-mode
  :ensure t
  :config
  (add-hook 'markdown-mode-hook 'ospl-mode))

Or better yet via DOOM-emacs

;; in ~/.doom.d/packages.el
(package! ospl-mode
  :recipe (:host github
           :repo "arrdem/ospl-mode"
           :branch "v0.1.0"))

License

This code was derived from this StackOverflow answer, which bears no license.

My contributions to this project (the majority of it) are made available under the terms of the GNU General Public License V3 or later.

About

An Emacs minor mode for formatting Mardown with one sentence per line

Resources

Stars

Watchers

Forks

Packages

No packages published