• 2 Posts
  • 19 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.








  • It works, but all the files will be mixed together. This isn’t really a problem, since if the container wants to access file_a in volume1, and file_b in volume2, then it will be able to do so no problem. The problem is when you have two different files named file_a in the two different mount points in the container. In that case, one file will get overwritten by the other.

    Just use separate volumes.



  • SnooPets20@alien.topBtoEmacsDelete backup files when saving
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    That’s what git is for, or just having undo-tree from which the file can be reverted to a previous state.

    I tried to keep auto-saves and backup files in their own separate directory, since they always litter my projects which is annoying, but they just won’t listen, I have to disable them.



  • SnooPets20@alien.topBtoEmacsIs there break undo in Emacs?
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Do note that undo-tree not only provides a visual, it is a fundamentally different way of doing undos. The stock emacs way is not a tree, it’s a line. There’s no real “redo” in emacs for instance, you just undo an undo. It’s odd, but undo tree works really well.




  • 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.