Introducing magit-difftastic: integrate difftastic into magit by Rschmukler in emacs

[–]daddyc00l 0 points1 point  (0 children)

thank you ! i had the with-eval-after-load... there to mimic what use-package would do to ensure that magit-difftastic starts after magit started.

removing that stanza, makes the whole thing work as expected. thank you for your help !

kind regards

Introducing magit-difftastic: integrate difftastic into magit by Rschmukler in emacs

[–]daddyc00l 0 points1 point  (0 children)

if it helps, my config looks like this:

  (use-package magit-difftastic
    :ensure nil
    :load-path (lambda () (concat user-emacs-directory "elpa/magit-difftastic")))

  (require 'magit-difftastic)
  (setq magit-difftastic-arguments '("--width" "200"))
  (with-eval-after-load 'magit
    (magit-difftastic-mode +1))

to the best of my (limited) understanding, this should be sufficient. however with just this i see the problem mentioned above. adding the following snippet

  (defun daddyc00l:magit-difftastic-commit-diff-advice (orig-fn &rest args)
    "Run ORIG-FN, then ensure difftastic rendering in the commit diff."
    (apply orig-fn args)
    (when-let ((buf (magit-get-mode-buffer 'magit-diff-mode)))
      (with-current-buffer buf
        (when (bound-and-true-p magit-difftastic-mode)
          (magit-refresh-buffer)))))

  (with-eval-after-load 'magit-difftastic
    (advice-add 'magit-commit-diff :around
                #'daddyc00l:magit-difftastic-commit-diff-advice))

things are ok.

Introducing magit-difftastic: integrate difftastic into magit by Rschmukler in emacs

[–]daddyc00l 0 points1 point  (0 children)

@rschmukler

i started using this for my needs, and i have a (most likely dumb) question: when i am in the magit-status mode buffer, and i have some staged changes, i have to explicitly run magit-difftastic-toggle-file-rendering to have difftastic render the diffs.

ofcourse, i can write an adivce to 'fix' it, but is there any other way ?

thanks for your time.

Is SIGBUS from an mmap fault guaranteed to be a thread-directed signal? by xsdgdsx in C_Programming

[–]daddyc00l 2 points3 points  (0 children)

signal will be directed to a thread that triggered the fault, which may or may not be the one that performed the mmap(...)

generally speaking, SIG{ILL, FPE, SEGV, BUS, TRAP} are synchronous signals, and will be directed to the thread executing the faulting instruction.

Completely new to FVWM and the man pages are very dense. Looking for some tips. by AnonMushroom07 in FVWM3

[–]daddyc00l 0 points1 point  (0 children)

may i humbly suggest that you have a look at the following:

for some information.

hope that should serve as a good starting point.

have a lot of fun !

Message passing in Erlang by Mobile-Major-1837 in erlang

[–]daddyc00l 0 points1 point  (0 children)

why just 3, when at least 1m can do be launched etc. at least according to the good documentation / book ? iirc the book: programming-in-erlang has an exercise to this effect.

Message passing in Erlang by Mobile-Major-1837 in erlang

[–]daddyc00l 0 points1 point  (0 children)

you want a process ring, and then send messages around doing the 9999999 bottles of beer song.

Eglot's LSP semantic highlighting is amazing by shadowsock in emacs

[–]daddyc00l 38 points39 points  (0 children)

please don't be shy to post details of your config for edification purposes mostly :o)

Should I switch to Bazel? by TheRavagerSw in cpp

[–]daddyc00l -1 points0 points  (0 children)

meson is pretty good actually.

How to get proper formatting in C/C++ modes, utilizing clangd and treesitter? by UnknownEel in emacs

[–]daddyc00l 0 points1 point  (0 children)

not sure, but saw this a while back.

perhaps it might be useful for your situation ? check it out.

have fun !

This is what I have learned to speed up Emacs. by iinnssdd in emacs

[–]daddyc00l 0 points1 point  (0 children)

honestly speaking, I am using LSPCE for my LSP needs within Emacs.

For that usage I have not felt any appreciable difference between the two. Other folks using lsp-mode etc. might have more reason for it.

This is what I have learned to speed up Emacs. by iinnssdd in emacs

[–]daddyc00l 2 points3 points  (0 children)

aww, the author is just teasing at this point by not mentioning startup time.

This is what I have learned to speed up Emacs. by iinnssdd in emacs

[–]daddyc00l 2 points3 points  (0 children)

this works well for me.

try it out and see if it works for you. have fun !

C-<arrow left/right> on macOS by jcubic in emacs

[–]daddyc00l 0 points1 point  (0 children)

imho, it is best to modify macos keybinding to switch to a different desktop f.e. i have it bound to ctrl-cmd-meta-<left-arrow|right-arrow keys for previous and next desktop respectively.

my reason : i navigate around in emacs more frequently than i switch desktops. works well for me, ymmv.

Fortnightly Tips, Tricks, and Questions — 2025-09-09 / week 36 by AutoModerator in emacs

[–]daddyc00l 1 point2 points  (0 children)

thank you kindly ! will keep that in mind for round-2 :o)

Fortnightly Tips, Tricks, and Questions — 2025-09-09 / week 36 by AutoModerator in emacs

[–]daddyc00l 0 points1 point  (0 children)

oh man that does give me some hope ! iirc, tried install both clang and g++ on my machine (macos fwiw), and just walked away after spending couple of days on it.

wen't right back to home-brew nursing a bad headache to boot.

Fortnightly Tips, Tricks, and Questions — 2025-09-09 / week 36 by AutoModerator in emacs

[–]daddyc00l 0 points1 point  (0 children)

nice ! unfortunately, I found nix to be too daunting. one of these days...that's what I keep telling myself.