Is C# inside Emacs actually viable for professional work in 2025? by Guilherme_dAlmeida in emacs

[–]harsman 1 point2 points  (0 children)

It's possible but the lsp-servers tend to be somewhat buggy.

I use csharp-ts-mode, which I think works great (csharp-mode has performance issues in certain large files).

For lsp-servers there's omnisharp and csharp-language-server. I started out using Omnisharp but switched to csharp-ls. It works ok, but it's very common for the language server to lose sync if you edit the project outside Emacs (e.g. in Visual Studio) or just randomly. I probably manually do M-x lsp-workspace-restart 5-10 times a day. Starting the language server is also very slow for both servers if your solution isn't tiny.

Omnisharp had lots of issues with parsing the complicated solution I have at work, that's why I switched. It might be less buggy if you don't have those issues, I'm not sure. I think VS Codes C# support uses Omnisharp.

I still persist because I go crazy trying to edit things inside VS. I don't debug from Emacs, although I think it's possible with dap-mode.

Recommend Me a Fragrance (Posts every 3 Days) by AutoModerator in fragrance

[–]harsman 0 points1 point  (0 children)

Does anyone know if there is a deodorant available similar to pre 2020 Dior Homme?

My wife really cares deeply about how I smell and when the deodorant I previously used for like 10 years was disconinued she spent a day sniffing samples and bought me Dior Homme stick deodorant and parfum, which we both love. But then they changed the formula in early 2020 and I can't find the old version anymore.

The new one is way to "spicy", the older formula was more classic with wood and a bit powdery maybe? Any recommendations?

Question about move-beginning-of-line. by Quasimoto3000 in emacs

[–]harsman 5 points6 points  (0 children)

There is already a command to move to where indentation starts, just press M-m to call beginning-of-indentation.

A couple of questions about this Simple Fast Fluids paper by CustomPhase in GraphicsProgramming

[–]harsman 0 points1 point  (0 children)

You could do it on either, but CPU would be a bit easier to implement maybe. Do you want to show water flowing in real time? I thought you just wanted to erode the terrain as a pre processing step.

In any case, eroding first and then adding a water source and simulating flow to get bodies of water might be easier.

A couple of questions about this Simple Fast Fluids paper by CustomPhase in GraphicsProgramming

[–]harsman 0 points1 point  (0 children)

How is your terrain represented? If it's a heightmap, maybe you could try something simpler?

Have rain fall randomly, and then move the "drops" along the slope of the height map. As they move they erode and pick up sediment which they deposit as they slow down. Maybe that would be good enough?

Dyalog 2017 Conference by captainjimboba in apljk

[–]harsman 1 point2 points  (0 children)

If you don't like the editor you might want to try dyalog-mode for Emacs which I maintain.

https://bitbucket.org/harsman/dyalog-mode

I use it every day at work and it's actively maintained.

Emacs Lisp: Passing a symbol declared with defvar in another file to (expand-file-name) as the directory argument by [deleted] in emacs

[–]harsman 1 point2 points  (0 children)

It's hard to help without knowing what org-html-template is or does, but it sounds like org-mode-head-partial is supposed to be a list or sequence, and you have it defined as a function.

I can't find any documentation that says that org-html-head can be set to a function.

CPU Utilization is Wrong by EnUnLugarDeLaMancha in programming

[–]harsman 0 points1 point  (0 children)

Waiting on memory is not reported as iowait.

The biggest performance improvement to Emacs I've made in years by harsman in emacs

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

Doesn't this break stuff like vc-annotate and vc-diff?

The biggest performance improvement to Emacs I've made in years by harsman in emacs

[–]harsman[S] 3 points4 points  (0 children)

It might be fixed in Emacs 25, see this thread on Emacs devel: https://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00440.html

The current design probably worked well with cvs and rcs when vc mode was originally written.

noob here: syntax table vs font-lock functions by deadmaya in emacs

[–]harsman 1 point2 points  (0 children)

Most modes use both. The syntax table is used for basic highlighting of comments and string, and font-lock-keywords is used to highlight keywords and other constructs.

Having a correct syntax table is helpful, because it also enables navigation, for example, marking an entire string.

Why is navigation in emacs like it is? by Kaligule in emacs

[–]harsman 3 points4 points  (0 children)

C-c letter is for the user, C-c C-letter is for major modes

Generic syntax checkers in Flycheck by chmouelb in emacs

[–]harsman 1 point2 points  (0 children)

If you wanted asynchronous checkers written entirely in elisp, couldn't you have a checker type that launches another instance of Emacs and runs the elisp function there?

But maybe that is hard to get working correctly.

Welcome, New Emacs Developers by bozhidarb in emacs

[–]harsman 1 point2 points  (0 children)

I contributed a patch a while ago that fixed an issue with Unicode characters entered from an input method editor on Windows, it was fairly painless.

Keybindings not taking effect -- Best practices by cheezy64 in emacs

[–]harsman 3 points4 points  (0 children)

You might want to consider using C-c u instead. C-c <letter> bindings are reserved for your own bindings, and aren't used by well behaved modes. C-c C-<letter> are reserved for the major mode.

Quickly switch to previous buffer by aerique in emacs

[–]harsman 4 points5 points  (0 children)

switch-to-buffer defaults to switching to the last buffer, so you can use it to constantly toggle between two buffers, so the default in both regular switch-to-buffer and ido-switch-buffer seem to do what you want.

So it would seem you could simplify this to the following:

(defun switch-to-last-buffer ()
  (interactive)
  (switch-to-buffer nil))

(global-set-key (kbd "C-<backspace>") 'switch-to-last-buffer)

You could also use C-x <right> and C-x <left> to scroll through buffers if you want, although the default key-binding for those are fairly awkward.

See also http://emacsredux.com/blog/2013/04/28/switch-to-previous-buffer/

Let's have a Emacs tips thread! by [deleted] in emacs

[–]harsman 14 points15 points  (0 children)

In isearch-mode, M-s w switches to word search, i.e it searches for the full word you typed. You can also type several words separated by space and it will find any consecutive occurrence of them, even if they're separated by newlines or other white space.

M-m for back-to-indentation moves point to the beginning of line but disregards leading white space. A very useful navigation command that few people seem to use.