• 1 Post
  • 14 Comments
Joined 1 year ago
cake
Cake day: October 13th, 2023

help-circle

  • I’ve found that using this configuration, the LSP can’t halt the UI anymore, resulting in a very snappy experience. The results still take a few secs to show up, but at least you aren’t typing blindly waiting for the UI to refresh.

    (setq eglot-autoshutdown t)
    (setq eglot-sync-connect 0)
    (setq eglot-events-buffer-size 0)
    (fset #'jsonrpc--log-event #'ignore)
    (add-hook 'focus-out-hook 'garbage-collect)
    

    If you don’t use eglot, then the last two are the only relevant ones, which are the ones actually doing the work I think.










  • I just tested, it reports that I’m dragging the mouse and setting a region, but it’s weird because if the issue is my clicking being sloppy, when it should happen in emacs with no config as well, and it doesn’t.

          ;; mouse-drag-region
                     ;; mouse-set-region
    

    This is when I click and the button doesn’t get pressed.

       ;; mouse-drag-region
                       ;; Info-mouse-follow-nearest-node
    

    And this is when it does register.

    I can never reproduce the issue on emacs without config.