noooit

joined 1 year ago
[–] noooit@alien.top 1 points 1 year ago (1 children)

(advice-add 'jsonrpc--log-event :override #'ignore)

[–] noooit@alien.top 1 points 1 year ago

Worktrees is a tool. .

It's a git command option actually.

excuse my pedantics.

No i won't. It's a fancy git clone by not fully cloning the repo from the existing clone. It's just space efficient with some extra command options.

[–] noooit@alien.top 0 points 1 year ago (2 children)

I stopped using worktree completely. It's basically fancy git clone and it'll leave unnecessary path histories and I have to index the project from scratch as well.

I think git checkout is enough unless you work in a repo where git checkout causes huge recompilation. It's also a good moment to make a commit to the working branch for reflog when I checkout some PR.
I never use stash either unless i intend to pop the stash within a minute.

[–] noooit@alien.top 1 points 1 year ago

It should error out in a such case and you should rebase your local changes from remote whenever you can, manually fixing the conflicts if they exist.

The only use case for no rebase is when you have a gitconfig not to rebase on pull and you manually want to just pull, which is a quite rare use case.

[–] noooit@alien.top 1 points 1 year ago (5 children)

No rebase is the default for both magit and git

[–] noooit@alien.top 1 points 1 year ago

I have a similar requirement.
If folder1 and folder2 have different project root marker, it's possible to start multiple language servers via project-vc-extra-root-markers.

But the tricky part is when it's started from folder2, it needs to cd to folder1 before executing the language server.

I achieve this by creating a wrapper script for language server and create a function that sets an environment variable before executing the script and does do complex things in the script.

It'd be nice if there was a better solution without depending on .dir-locals.el and etc, like passing a function for the server program so that I don't have to use a script + environment variable.

[–] noooit@alien.top 1 points 1 year ago

GNU Emacs is configurable for a reason. Don't use those complete garbages.
The configuration should be made by you. It's really not that hard, just start from the tutorial.

[–] noooit@alien.top 1 points 1 year ago

GNU Emacs is configurable for a reason. Don't use those complete garbages.
The configuration should be made by you. It's really not that hard, just start from the tutorial.

view more: ‹ prev next ›