Skip to content

zemja/red-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

red-mode

Emacs mode for Red

This is my personal fork of unchartedworks/red-mode, which fixes a few minor bugs I've had with it:

Bear in mind I'm not great with Emacs Lisp, and I've never made a mode of my own before, so the code might be written terribly.

  1. Make it derive from prog-mode.
  2. Run font-lock-update in pre-command-hook, as a crappy way to make the font locking work properly.
  3. Replace a reference to font-lock-doc-string-face with font-lock-doc-face, which made the above fail (since the former has been renamed to the latter, according to a comment near the top of cc-fonts.el, which comes with Emacs).
  4. Start red-mode when opening a .reds file; not sure why this was commented out.

Installation from git repository

  1. git clone https://github.com/unchartedworks/red-mode.git into a suitable directory, e.g. ~/emacs/red-mode/

  2. Add the following command to your .emacs or ~/.spacemacs:

(add-to-list 'load-path' "~/emacs/red-mode")
(load-file "~/emacs/red-mode/red-mode.el")

About

Emacs mode for Red

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%