Giter Club home page Giter Club logo

Comments (10)

casouri avatar casouri commented on September 28, 2024 1

Yeah I can fix that. Added to todo ; )

from eldoc-box.

casouri avatar casouri commented on September 28, 2024

Have you tried eldoc-box-max-pixel-width?

from eldoc-box.

andreyorst avatar andreyorst commented on September 28, 2024

from eldoc-box.

casouri avatar casouri commented on September 28, 2024

Ah, I see. I would try

(add-hook 'eldoc-box-buffer-hook (lambda () (unless word-wrap (toggle-word-wrap))) nil t)

from eldoc-box.

andreyorst avatar andreyorst commented on September 28, 2024

It seems it prevents eldoc box from appearing

from eldoc-box.

casouri avatar casouri commented on September 28, 2024

I made a mistake, it should be

(add-hook 'eldoc-box-buffer-hook (lambda () (unless word-wrap (toggle-word-wrap))) nil t)

It doesn't make sense to add the hook locally.

However, that mistake shouldn't prevent the childframe from appearing. FWIW, I tried the snippet and it seems to work. I couldn't think of a source of your problem on top of my head.

from eldoc-box.

andreyorst avatar andreyorst commented on September 28, 2024

these hooks are the same, so I think you've meant:

(add-hook 'eldoc-box-buffer-hook (lambda () (unless word-wrap (toggle-word-wrap))))

This works. Thanks!

from eldoc-box.

yvesnrb avatar yvesnrb commented on September 28, 2024

The solution posted by @andreyorst works great for word wrapping, thank you!

Just a minor annoyance that is probably not worth opening a new issue over: the arrows that indicate wrapping are getting squished at the edges of the window. Like this:

image

Also consider making word wrapping the default.

from eldoc-box.

casouri avatar casouri commented on September 28, 2024

I pushed a change that enables visual-line-mode in child frame, give it a try :-)

from eldoc-box.

yvesnrb avatar yvesnrb commented on September 28, 2024

I got rid of the hook function suggested earlier and indeed we are still wrapping at word boundaries, as per visual-line-mode. There are no more squished arrows either. Looks great to me!

image

from eldoc-box.

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.