Giter Site home page Giter Site logo

Font size during review about org-fc HOT 4 CLOSED

l3kn avatar l3kn commented on June 14, 2024
Font size during review

from org-fc.

Comments (4)

l3kn avatar l3kn commented on June 14, 2024

org-fc has two hooks that are run before and after the review session, org-fc-before-review-hook
and org-fc-after-review-hook.

In the before-review-hook, you could save the old font size and set a new larger one, then use the after-review-hook to reset it.

from org-fc.

lcabrini avatar lcabrini commented on June 14, 2024

Great! I'll look into those hooks. Thanks! (And sorry that I fired of issues without RTFC first).

from org-fc.

l3kn avatar l3kn commented on June 14, 2024

Don't worry about not having read the code, that shoudn't be neccessary for a feature like this (that's what the hook system is for).

Looks like I wrote a bit of documentation for it at https://www.leonrische.me/fc/customizing_org-fc.html but it doesn't really show how to use the hooks.

Let me know if you come up with an implementation, then I can add it to the page as an example.

from org-fc.

cashpw avatar cashpw commented on June 14, 2024

I'm using doom emacs and have the following to handle font size during review:

(use-package! org-fc
  ...
  :config
  ...
  (defun cashweaver/org-fc--increase-font-size()
    (doom/increase-font-size 2))
  (add-hook! 'org-fc-before-setup-hook
             #'cashweaver/org-fc--increase-font-size)
  (add-hook! 'org-fc-after-review-hook
             #'doom/reset-font-size)

from org-fc.

Related Issues (20)

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.