{"id":13862741,"url":"https://github.com/hlissner/emacs-pug-mode","last_synced_at":"2025-04-10T14:10:44.949Z","repository":{"id":145436237,"uuid":"51997690","full_name":"hlissner/emacs-pug-mode","owner":"hlissner","description":"Pug support for Emacs, based on slim-mode.","archived":false,"fork":false,"pushed_at":"2021-11-14T16:46:14.000Z","size":115,"stargazers_count":43,"open_issues_count":6,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T12:55:31.829Z","etag":null,"topics":["emacs","emacs-mode","melpa","pug"],"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/hlissner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-18T09:56:24.000Z","updated_at":"2024-09-13T05:40:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"7aa1543f-66ed-4e0b-af1f-9fe1c4e5dee1","html_url":"https://github.com/hlissner/emacs-pug-mode","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlissner%2Femacs-pug-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlissner%2Femacs-pug-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlissner%2Femacs-pug-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlissner%2Femacs-pug-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlissner","download_url":"https://codeload.github.com/hlissner/emacs-pug-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248232398,"owners_count":21069487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["emacs","emacs-mode","melpa","pug"],"created_at":"2024-08-05T06:01:51.376Z","updated_at":"2025-04-10T14:10:44.907Z","avatar_url":"https://github.com/hlissner.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"[![Made with Doom Emacs](https://img.shields.io/badge/Made_with-Doom_Emacs-blueviolet.svg?style=flat-square\u0026logo=GNU%20Emacs\u0026logoColor=white)](https://github.com/hlissner/doom-emacs)\n![Release tag](https://img.shields.io/github/tag/hlissner/emacs-pug-mode.svg?label=release\u0026style=flat-square)\n[![MIT](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)\n[![MELPA](http://melpa.org/packages/pug-mode-badge.svg)](http://melpa.org/#/pug-mode)\n[![MELPA Stable](http://stable.melpa.org/packages/pug-mode-badge.svg)](http://stable.melpa.org/#/pug-mode)\n[![Build Status](https://travis-ci.org/hlissner/emacs-pug-mode.png?branch=master\u0026style=flat-square)](https://travis-ci.org/hlissner/emacs-pug-mode)\n\n# pug-mode\n\n`pug-mode` offers Emacs support for [Pug](https://pugjs.org/). Unlike\n`jade-mode`, it is based off of\n[slim-mode](https://github.com/slim-template/emacs-slim).\n\n## Installation\n\n`pug-mode` is available on MELPA.\n\n`M-x package-install RET pug-mode`\n\n```emacs-lisp\n(require 'pug-mode)\n```\n\n## Why not use jade-mode?\n\nI created pug-mode because [jade-mode](https://github.com/brianc/jade-mode)\n(based on `sws-mode`) is incomplete in ways that are inconvenient to me. For\ninstance, it has poor/no fontification of plain-text, filter blocks, or mixin\ndefinitions/invokations; its indentation strategies seemed too aggressive and\nthe source was too difficult to grok quickly to address these issues.\n\nIn contrast, it took me 10 minutes to grok `slim-mode`'s source and another 10\nto adapt it to Pug in—what I think—is a better result. Most of the code is\nlifted right out of slim-mode, so much of the credit belongs to its original\ndevelopers!\n\n## Auto-compiling pug files\n\nThis plugin introduces a `pug-compile` function. You can call it\ndirectly (e.g. `M-x pug-compile`) or have it done automatically for .pug files:\n\n```emacs-lisp\n(defun pug-compile-saved-file()\n  (when (and (stringp buffer-file-name)\n             (string-match \"\\\\.pug\\\\'\" buffer-file-name))\n     (pug-compile)))\n(add-hook 'after-save-hook 'pug-compile-saved-file)\n```\n\nIt requires [pug-cli](https://www.npmjs.com/package/pug-cli).\n\n## Contributions\n\nI am no expert at writing major modes for Emacs and welcome contributions of any\nkind. Be they pull requests, bug reports or elisp tips!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlissner%2Femacs-pug-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlissner%2Femacs-pug-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlissner%2Femacs-pug-mode/lists"}