Giter VIP home page Giter VIP logo

Comments (3)

larstvei avatar larstvei commented on August 22, 2024

Hi, thanks for raising this issue.

By default, all modes that are derived from prog-mode uses defun as the default thing to be in focus (defined in Thing At Point). It seems like this is a bad fit for python, as it only works with classes and functions.

Try adding this to your config:

(add-to-list 'focus-mode-to-thing '(python-mode . paragraph))

Does this produce a more satisfying result?

from focus.

kootenpv avatar kootenpv commented on August 22, 2024

In terms of highlighting, yes it solves the problem! Thanks! It unfortunately introduces a new problem: my screen flickers, causing a very stuttering feeling when I change "block".

Here I have an idea what could be related: whenever I move my cursor I have "recenter-screen" called (so my cursor is always in the middle, except when at bottom or end of a file). Perhaps you're doing something similar.

Oh and in case it helps, I'm using Emacs 24.4.

from focus.

larstvei avatar larstvei commented on August 22, 2024

Sadly, I am not able to reproduce this error. I've tried using center-cursor-mode along with focus, and it seems to work fine.

This seems unrelated to the Python bug, so I'll close this issue (assuming that the customization I suggested was satisfactory). If you want me to further investigate the flickering-bug, please open a new issue, and provide some reproducible example.

from focus.

Related Issues (19)

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.