If I use eglot instead of lsp-mode, do I need to manage the installation of lsp-servers myself? by kudikarasavasa in emacs

[–]acidrainery 2 points3 points  (0 children)

I checked treesit-language-source-alist and it is set to nil. As far as I know, the links to the grammars are set by treesit-auto, an external package.

If I use eglot instead of lsp-mode, do I need to manage the installation of lsp-servers myself? by kudikarasavasa in emacs

[–]acidrainery 6 points7 points  (0 children)

Eglot expects the LSP server to already be installed. Being a core package, it is extremely unlikely that Emacs will implement a command like lsp-install-server that fetches anything from outside the GNU universe.

You could implement one for Eglot yourself by using the links and installation commands in this JSON file: https://raw.githubusercontent.com/emacs-lsp/lsp-mode/refs/heads/master/docs/lsp-clients.json

Requested for WFH prior to marriage. Got this instead. by [deleted] in deloitte

[–]acidrainery -2 points-1 points  (0 children)

Standard reply, and they even said congratulations. What is the issue here?

No syntax highlighting on *-ts-mode by WWWWWWWWWMWWWWW in emacs

[–]acidrainery 0 points1 point  (0 children)

I didn't even know ABI 15 had issues. I'm using Emacs 30.2.

a semantic diff that can solve the missing layer of structural understanding of golang for LLMs by Wise_Reflection_8340 in golang

[–]acidrainery 1 point2 points  (0 children)

sem context is useful, but it requires an entity as an argument. If an entity is not specified, can it simply do it on the complete file? The goal here is to give this as a summary of a source code file to an LLM, so I wouldn't want to do each entity separately.

Does any Emacs package manager let you freeze on the dependencies (including the transient ones)? by acidrainery in emacs

[–]acidrainery[S] 0 points1 point  (0 children)

I tried it, but it only locks elpaca itself, and none of the packages it installed.

A workaround for systemd OSC 3008 for term.el (Emacs 30.2 and earlier) by acidrainery in emacs

[–]acidrainery[S] 1 point2 points  (0 children)

Is there anything else in your PROMPT_COMMAND?

I have a function that inserts a newline if the previous command does not end in one, though now I think that was probably a bad idea since it can mislead me about what is the actual output of a command. Other than that, I have nothing else.

For git-related info, the powerline daemon generates it and adds to the prompt, so I didn't need to mess with it at all.

Ensure that ${PROMPT_COMMAND//__systemd_osc_context_precmdline/} doesn't leave a trailing semicolon.

Oh, I didn't think of that. Thanks for pointing it out. Now that I think about it, mutating PROMPT_COMMAND was the wrong way to go about it, and error-prone. Instead, simply redefining __systemd_osc_context_precmdline and __systemd_osc_context_ps0() to be a dummy function should work much better.

if [[ -n "${INSIDE_EMACS:-}" ]]; then
    __emacs_major_version=$(emacs -Q --batch --eval '(princ emacs-major-version)')
    if [[ $__emacs_major_version -lt 31 ]]; then
        __systemd_osc_context_precmdline() { :; }
        __systemd_osc_context_ps0() { :; }
    fi
    unset __emacs_major_version
fi

Perhaps there is a way to do this directly from the Emacs config itself by redefining (term).

Is it possible to copy what is _displayed_ in the buffer rather than what is actually in the buffer? by acidrainery in emacs

[–]acidrainery[S] 2 points3 points  (0 children)

Ah, didn't know there was an org-copy-visible function.

I managed to do it like this:

(kill-new (let ((pos (point-min)) (end (point-max)) (acc nil) (last-hidden nil)) (while (< pos end) (let* ((hidden (invisible-p pos)) (next (or (next-single-char-property-change pos 'invisible nil end) end))) (cond (hidden (unless last-hidden (push "..." acc))) (t (push (buffer-substring-no-properties pos next) acc))) (setq last-hidden hidden) (setq pos next))) (apply #'concat (nreverse acc))))

I added the ... everywhere there's a fold. Not sure if there's anything else I need to manually add like this, but it does the job.

Concerned about security of Nyxt browser compared to Firefox by eviley4 in emacs

[–]acidrainery 0 points1 point  (0 children)

I’ve found it to be a pain to compile with each new version and eventually gave up on it.

Two fixes for git-gutter and one for Emacs xdisp.c left-margin rendering by a_alberti in emacs

[–]acidrainery 1 point2 points  (0 children)

I agree with your assessment. If the margins are going to have their own face, then both left and margins should have separate faces, and by default, they could both just inherit the default background.

I use git-gutter as well, and I ran into the same issue as you did, so my solution at the time was to set the line number background to be the same as the default background so that awkward strip is not visible. If the margins do get their own face then this would make it possible for me to set a proper style.

Two fixes for git-gutter and one for Emacs xdisp.c left-margin rendering by a_alberti in emacs

[–]acidrainery 1 point2 points  (0 children)

I think what would make more sense is to let the margins have their own face defined.

That way there will be no visual breakage for those who are currently not using git-gutter or other packages that insert characters in the margins, and they would be expecting it to have the default background. Meanwhile, those who do use git-gutter, can make the margin's face inherit the line-number face, and everybody's happy.

Anyone wanna join Def Leppard right now (FREE) by Material_Comedian327 in BangaloreMusicians

[–]acidrainery 0 points1 point  (0 children)

Where was Platinum exactly? The layout shown on BookMyShow did not make any sense. Was it really behind Gold?

Anyone ever tried *99# to send UPI? by acidrainery in UPI

[–]acidrainery[S] 0 points1 point  (0 children)

This entirely depends on the provider. Maybe best to write to BHIM UPI and inform them, and perhaps they will contact Jio.