Giter Club home page Giter Club logo

Comments (7)

elken avatar elken commented on August 25, 2024 1

I don't want to pile onto this, but quoting the README

This is very much a work in progress

It's fair that a package that isn't in a state of completion doesn't have fleshed out documentation yet. The key functions have docstrings, and if you're unsatisfied with the degree of that you are welcome to try and improve it :D

from engrave-faces.

tecosaur avatar tecosaur commented on August 25, 2024

After installing it, you use it.

from engrave-faces.

PhilHudson avatar PhilHudson commented on August 25, 2024

Seriously? I've given you important and useful feedback here, and you've come back with... that? Your. Doco. Does. Not. Describe. How. To. Use. It. Not. Even. A. Little. Bit. What do you do? require it? Then what? You must have seen an Emacs package before. They describe how to use themselves in fairly standard ways. Do that. Don't make users read every line of code to deduce what you mean by "use it".

from engrave-faces.

PhilHudson avatar PhilHudson commented on August 25, 2024

from engrave-faces.

tecosaur avatar tecosaur commented on August 25, 2024

What do you do? require it? Then what?

I don't know about you, but I usually poke around and see what the package provides. The engrave-faces library exposes a mere 20 public functions/variables. They all have non-placeholder docstrings, and I think I can reasonably expect somebody having a bit of a look at them to get a picture of how they fit together. Docstrings are not second-class citizens. After the package has matured a bit more I'll think about maybe describing some common entry points, but that's in the future.

from engrave-faces.

PhilHudson avatar PhilHudson commented on August 25, 2024

from engrave-faces.

tecosaur avatar tecosaur commented on August 25, 2024

Actually, it will only take me a moment to add a demo of the predominant entry point here.

(defun engrave-faces-demo--face-apply (faces content)
  (format "{%S %s}" faces content))

(engrave-faces-define-backend
 "demo" ".demo" #'engrave-faces-demo--face-apply)

;; Using our new "demo" backend

(with-current-buffer
    (with-temp-buffer
      (emacs-lisp-mode)
      (insert "(message \"hey %s\" 'you)")
      (font-lock-ensure)
      (engrave-faces-demo-buffer))
  (buffer-string))

For more comprehensive examples, there's engave-faces-{html,latex,ansi}.el.

from engrave-faces.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.