GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hhvm/hack-mode: A Emacs major mode for editing Hack code

BranchesTags
Open more actions menu

Latest commit

 

History

188 Commits
188 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
test
test
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cask
Cask
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
hack-mode.el
hack-mode.el
 
 
screenshot.png
screenshot.png
 
 

Repository files navigation

hack-mode MELPA

hack-mode is an Emacs major mode for editing Hack code.

screenshot

hack-mode includes extensive, precise syntax highlighting:

  • Comment highlighting (additionally highlighting special comments like strict, HH_FIXME)
  • Keyword highlighting (case insensitive where appropriate)
  • String ('foo', "foo", <<<FOO and <<<'FOO') highlighting, including interpolation
  • XHP support

It also provides indentation, integration with hackfmt and parenthesis match highlighting.

Installation

Install from MELPA, or load this package into your elisp load-path.

Configuration

After installation, hack-mode will automatically run on .hack, .hck and .hhi files.

It will also run on .php files, but php-mode will take precedence if installed. If you want hack-mode to take precedence, use the following:

(add-to-list 'auto-mode-alist '("\\.php\\'" . hack-mode))

Formatting

hack-mode provides hack-format-buffer to run hackfmt on the whole file. If you'd like this automatically run on save, add it to your hooks:

(add-hook 'hack-mode-hook #'hack-enable-format-on-save)

Other Packages

We recommend using hack-mode with the following minor-modes:

(add-hook 'hack-mode-hook #'lsp)
(add-hook 'hack-mode-hook #'flycheck-mode)
(add-hook 'hack-mode-hook #'company-mode)

License

hack-mode is licensed under the GNU General Public License v3.0.

About

A Emacs major mode for editing Hack code

Resources

Readme
GPL-3.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

15 stars

Watchers

21 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.