GithubHelp home page GithubHelp logo

Comments (9)

paulprovost avatar paulprovost commented on August 16, 2024

Gah. Hosed by markdown!

from rebox2.

paulprovost avatar paulprovost commented on August 16, 2024

Hi!

Rebox used to leave a space after a trailing period when boxing comments. The current version does not. Maybe you could add that as an option. Just to be clear, currently, we get

# Initializations. #
# ---------------- #

where

# Initializations.  #
# ----------------- #

would be nice(r). I find it lets the comments "breathe" a little bit.

Great work otherwise!

from rebox2.

lewang avatar lewang commented on August 16, 2024

If it did that then it was a bug ;). Can you describe the context? When filling it used to leave a space?

What if you enable the minor-mode? then spaces at the end automatically expand the box due to autofill.

from rebox2.

paulprovost avatar paulprovost commented on August 16, 2024

I should clarify the "used to" bit. This was using François Pinard's version. I have an older .el version, before the move to pymacs. The latest copyright note on it is 2006.

My issue happens without using the minor mode. This:

# Initializations.  #
# ---------------- #

formats as this:

# Initializations. #
# ---------------- #

when hitting "Alt-Q".

With the minor mode active, I am able to hit space after the period and get (what I would like):

# Initializations.  #
# ----------------- #

Makes sense?

Like I said, I like the extra space after the period. Could you add a flag to enable the "old" behavior?

from rebox2.

lewang avatar lewang commented on August 16, 2024

I thought your name looked familiar. You're from the rebox header? hehe.

I'll take a look at it.

from rebox2.

lewang avatar lewang commented on August 16, 2024

Do the latest changes satisfy your request?

from rebox2.

paulprovost avatar paulprovost commented on August 16, 2024

Yeah, I'm at the origin of this whole thing...

I'll have a look at the changes over the weekend. Thanks!

from rebox2.

lewang avatar lewang commented on August 16, 2024

Oh and also if you need a minimum box size, you can se the rebox-min-fill-column

from rebox2.

paulprovost avatar paulprovost commented on August 16, 2024

Great! Setting rebox-pad-sentence-end to t works fine. Had to set sentence-end-double-space to nil (two spaces were a bit much). Nice how you used that instead of making up some other sentence end regexp for yourself. I bow to your emacs-lisp talents!

from rebox2.

Related Issues (12)

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.