-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spacemacs used as GIT_EDITOR doesn't syntax highlight COMMIT_EDITMSG when magit isn't previously loaded #2522
Comments
I think this is fixed in develop thanks to #2293 |
I'm running on |
@mkomitee I'm using it in this way by having |
@StreakyCobra It doesn't work for me. In my ;; Enable highlighting of git commit messages when emacs is $EDITOR
(global-git-commit-mode t) However, when running System Info
(unscroll auto-completion xkcd emacs-lisp git gtags dash yaml github javascript html markdown extra-langs python ruby org osx python django syntax-checking spell-checking version-control lua colors spacemacs-layouts vimscript
(c-c++ :variables c-c++-enable-clang-support t)
(shell :variables shell-default-height 30 shell-default-position 'bottom)) |
Weird... |
Oh crap, nevermind. I forgot I was running a daemon that needed reloading. It does indeed work. |
This appears to work for me. Should that be configured by the layer, or should everyone who uses spacemacs/emacs as ... if we don't want to have it automatically enabled as the default (so that magit can be loaded as needed to speed up start-up), maybe it can be enabled by a layer configuration variable, or at least documented in the README.org file. |
It should at least be documented :-) An option for this in the |
Fixed in 374e37e |
Thanks! |
If you use emacs w/ spacemacs & magit via the git layer and emacsclient as GIT_EDITOR, and commit from a shell without first loading magit (by starting magit-status or something similar), then it won't syntax-highlight the COMMIT_EDITMSG buffer (it stays in FUNDAMENTAL mode) or enable the appropriate maps.
Adding (require 'magit) to dotspacemacs/config fixes the issue, so we probably need to add something else to the use-package stanza for magit in the git layer. I'd submit this as a pull request, but I'm not sure what would need to be added.
The text was updated successfully, but these errors were encountered: