Fork me on GitHub
#spacemacs
<
2023-04-04
>
murtaza5205:04:45

Hi, I had to reinstall emacs/spacemacs/practicalli's config for spacemacs. I am having trouble with magit. When I do SPC g s, it goes to the magit buffer, but does not show anything in the Unstaged section (its empty). This is the message line in the Messages buffer - apply: Searching for program: No such file or directory, delta Any ideas what is going on ?

practicalli-johnny08:04:54

Sounds like it can't find git binary on the Emacs PATH I think SPC f e e opens spacemacs.env file that contains the Emacs PATH details I assume a git binary is installed on the operating system

practicalli-johnny08:04:56

Ah no. I know what the problem is. I started using git-delta to make the diff much nicer. Either install git delta https://github.com/dandavison/delta/releases Or comment the git delta variable in the magit layer variables in the Spacemacs config , SPC f e d

git-enable-magit-delta-plugin t
Set to nil, comment or remove this variable

practicalli-johnny09:04:12

I pushed a change that comments this variable in the magit layer and added a comment that the delta tool should be installed before enabling. Thanks for letting me know and helping me improve the config.

murtaza5211:04:49

My suggestion - instead of commenting it out, you could include the installation of git delta in the instructions on your site. Are there any other optional tools, that have to be enabled / installed ? I just use your config out of the box.

murtaza5211:04:01

thanks for the quick response.

practicalli-johnny12:04:29

https://practical.li/spacemacs/install-spacemacs/pre-install/#command-line-tools has the recommended tools. Although looking again I realise I haven't included Git either. I will add git and suggest git delta as an optional extra. Delta isn't essential though and depending on theme used can be useful or get in the way, so I will keep it comment and provide info for a person to make the choice Thanks for the feedback

murtaza5213:04:26

I installed delta, yup it does make the diffs more clear/beautiful

practicalli-johnny10:04:50

I've release a relatively minor change to the Practicalli Spacemacs config - most importantly making Git delta in magit a feature that has to be uncommented to use (as issues arise in magit status if the delta binary is not present https://clojurians.slack.com/archives/C015AL9QYH1/p1680604293606299

👀 2
murtaza5213:04:31

After new install of spacemacs, I get these warnings on emacs startup-

Auto-evilification could not remap these functions in map 'archive-mode-map':
   - 'archive-chgrp-entry' originally mapped on 'G'
Auto-evilification could not remap these functions in map 'cider-docview-mode-map':
   - 'cider-docview-clojuredocs-web' originally mapped on 'G'

practicalli-johnny14:04:47

I've had similar warnings to these for a while, they don't seem to affect anything

murtaza5213:04:05

Also this one -

Package 'all-the-icons' isn't installed
While I did install the all-the-icons-install-fonts

practicalli-johnny14:04:37

I also get this warning but seems to work regardless

murtaza5214:04:57

One issue I always face in the magit buffer is that the screen freezes for a few secs, this happens frequently when I am looking at diffs etc. Any reason this happens ? This used to happen in the previous installation too. I just reinstalled everything emacs, spacemacs etc - but the issue continues.

Drew Verlee15:04:49

Ill check to see if this happens to me too.

Sergio19:04:10

Hi, when I installed the first time the spacemacs config the terminal layer wasn't working, the reason is that by default it looks for the bin under /bin/zsh but that depends on the type of mac itself: > To set zsh as your default shell, execute the following assuming a default install of Homebrew > ◦ Recent macOS versions: > ▪︎ For m1 macs: > • chsh -s /opt/homebrew/bin/zsh > ▪︎ For intel macs: > • chsh -s /usr/local/bin/zsh > ◦ macOS High Sierra and older: > ▪︎ chsh -s /bin/zsh > Source: https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH#how-to-install-zsh-on-many-platforms . Maybe add a comment? or, is there a way to keep it compatible regardless machine/OS?

practicalli-johnny08:04:16

The Spacemacs docs state terminal-here is used to detect the default shell. There are variables that can be set for each OS, but I didn't see anything for the different variations of MacOSX https://develop.spacemacs.org/layers/+tools/shell/README.html#external-terminal-emulator I never noticed an issue when I used a Mac last year. I use vterm as the launched shell that seemed to work just fine with the zsh I was using. Personally I would add a symbolic link on the operating system file system so the MacOSX laptops all had the same /bin/zsh or what ever default location is preferred

Sergio13:04:10

ok, I think makes sense, thanks!

practicalli-johnny13:04:53

Unfortunately I don't have access to the various versions of MacOSX to test any other ideas. I am surprised it's installed in different places on MacOSX, I wonder why that is

Sergio13:04:07

between intel vs arm the reason seems to be https://github.com/Homebrew/brew/issues/9177: > In #9117, we switched to a new prefix of /opt/homebrew for installations on Apple Silicon. This was written and shipped with heroic speed to help prevent strange issues with bleeding edge users on the first consumer Apple Silicon Macs. > —Misty De Méo - Homebrew Maintainer

Sergio13:04:32

but, between that and high sierra change is not clear to me