modern-sh icon indicating copy to clipboard operation
modern-sh copied to clipboard

:guitar: An Emacs minor mode for editing shell script.

Emacs Logo GitHub license Sponsor MELPA

Modern sh

An Emacs minor mode for editing shell script.

Features

  • [x] Modern syntax highlighting
  • [x] Auto format on save
  • [x] Code navigation (using imenu)
  • [x] Go to definition (using ctags)
  • [x] REPL

Installation

Using MELPA

This package can be obtain from MELPA or MELPA Stable. The master branch is continuously deployed to MELPA, and released versions are deployed to MELPA Stable.

M-x package-install [RET] modern-sh [RET]

(require 'modern-sh)
(define-key modern-sh-mode-map (kbd "<f6>")  'modern-sh-menu)
(add-hook 'sh-mode-hook #'modern-sh-mode)