Skip to content

i4ki/nash-mode.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

MELPA

nash-mode

This package provides an Emacs major mode for Nash Shell. You can install using Melpa or cloning this repository directly.

It provides simple fontification and integration with nashfmt.

There are several ways to use nash-mode and the code below are just examples.

;;; Add nash-mode cloned source code to load-path
(add-to-list 'load-path "<path-to-nash-mode.el>")

(require 'nash-mode)

;; to use nash-mode for sh scripts (instead of sh-mode)
(add-to-list 'auto-mode-alist '("\\.sh\\'" . nash-mode))
(add-hook 'nash-mode-hook 'nash-fmt-enable-on-save)

If you prefer through use-package.

(use-package nash-mode
  :ensure t
  :commands (nash-mode)
  ;; to use nash-mode for sh scripts (instead of sh-mode)
  :mode "\\.sh\\'"
  :init (add-hook 'nash-mode-hook #'nash-fmt-enable-on-save))

About

Emacs mode for the Nash shell scripting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published