Skip to content

mhcerri/zenc-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

zenc-mode

zenc-mode is an unofficial Emacs major mode for the Zen-C programming language.

This is an initial version providing basic editor support for Zen-C source files.

Features

  • Syntax highlighting for keywords, types, constants, and built-ins.
  • Basic indentation.
  • Imenu support for navigating types, functions, and constants.
  • Automatic activation for .zc files.
  • Support for lsp and eglot via zc lsp.

Installation

Using use-package with :vc (Emacs 29+)

(use-package zenc-mode
  :vc (:url "https://github.com/mhcerri/zenc-mode" :rev :newest))

Manual installation

Clone the repository and add it to your load-path:

(add-to-list 'load-path "/path/to/zenc-mode")
(require 'zenc-mode)

Usage

Open a file with the .zc extension, or enable the mode manually:

(zenc-mode)

Customization

All customization options live under the zenc group:

M-x customize-group RET zenc RET

Limitations

  • Indentation support needs to be reworked.
  • No Tree-sitter, or advanced semantic features yet.

Contributing

Bug reports, fixes, and small improvements are welcome. Please open an issue or submit a pull request on GitHub.

About

Emacs major mode for Zen-C language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages