{"id":41019601,"url":"https://github.com/hhvm/hack-mode","last_synced_at":"2026-01-22T09:31:42.985Z","repository":{"id":74257791,"uuid":"142359201","full_name":"hhvm/hack-mode","owner":"hhvm","description":"A Emacs major mode for editing Hack code","archived":false,"fork":false,"pushed_at":"2025-12-12T21:39:53.000Z","size":369,"stargazers_count":15,"open_issues_count":5,"forks_count":15,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-12-14T11:59:12.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhvm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-07-25T22:14:37.000Z","updated_at":"2025-12-12T21:39:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"08f1d8c9-163e-4cbc-868c-c17a26f3b432","html_url":"https://github.com/hhvm/hack-mode","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hhvm/hack-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhvm%2Fhack-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhvm%2Fhack-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhvm%2Fhack-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhvm%2Fhack-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhvm","download_url":"https://codeload.github.com/hhvm/hack-mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhvm%2Fhack-mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28660770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T09:31:42.417Z","updated_at":"2026-01-22T09:31:42.977Z","avatar_url":"https://github.com/hhvm.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hack-mode [![MELPA](http://melpa.org/packages/hack-mode-badge.svg)](http://melpa.org/#/hack-mode)\n\n`hack-mode` is an Emacs major mode for editing [Hack](https://hacklang.org/) code.\n\n![screenshot](screenshot.png)\n\n`hack-mode` includes extensive, precise syntax highlighting:\n\n* Comment highlighting (additionally highlighting special comments\n  like `strict`, `HH_FIXME`)\n* Keyword highlighting (case insensitive where appropriate)\n* String (`'foo'`, `\"foo\"`, `\u003c\u003c\u003cFOO` and `\u003c\u003c\u003c'FOO'`) highlighting,\n  including interpolation\n* XHP support\n\nIt also provides indentation, integration with `hackfmt` and\nparenthesis match highlighting.\n\n## Installation\n\nInstall from MELPA, or load this package into your elisp load-path.\n\n## Configuration\n\nAfter installation, `hack-mode` will automatically run on `.hack`,\n`.hck` and `.hhi` files.\n\nIt will also run on `.php` files, but `php-mode` will take precedence\nif installed. If you want `hack-mode` to take precedence, use the\nfollowing:\n\n```emacs-lisp\n(add-to-list 'auto-mode-alist '(\"\\\\.php\\\\'\" . hack-mode))\n```\n\n### Formatting\n\n`hack-mode` provides `hack-format-buffer` to run `hackfmt` on the\nwhole file. If you'd like this automatically run on save, add it to\nyour hooks:\n\n```emacs-lisp\n(add-hook 'hack-mode-hook #'hack-enable-format-on-save)\n```\n\n### Other Packages\n\nWe recommend using hack-mode with the following minor-modes:\n\n```emacs-lisp\n(add-hook 'hack-mode-hook #'lsp)\n(add-hook 'hack-mode-hook #'flycheck-mode)\n(add-hook 'hack-mode-hook #'company-mode)\n```\n\n\n## License\n\nhack-mode is licensed under the GNU General Public License v3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhvm%2Fhack-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhvm%2Fhack-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhvm%2Fhack-mode/lists"}