Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

egg.el is loaded but egg-minor-mode is not enabled (no "C-x v" key bindings)

Tags:

git

emacs

All "M-x egg-" commands work ok

M-x egg-start-new-branch
   start new branch with name: xxx

But all of the "C-x v " key-bindings are still bound to "vc-" commands (I expected C-x v b to bind to egg-start-new-branch)

C-h k
   C-x v b runs the command vc-switch-backend, which is an interactive

Do I need to do somethings else besides doing a (require 'egg)?


Additional info

"Describe variable: egg-minor-mode"

 "egg-minor-mode is a variable defined in `egg.el'. Its value is t"

"M-x describe-minor-mode" -> egg-minor-mode

 "no such minor mode"
like image 383
jd. Avatar asked Dec 24 '11 20:12

jd.


2 Answers

A bit late, but I just ran into the same problem. You mention in a comment that you're using git 1.7. The thing is, egg requires version 1.6 to work, and it actually checks that you're using that version at line 5939. You can see that when the string doesn't match, the body of the when form doesn't get executed; but this is precisely where the keymap is set!

So if you wanna be adventurous, you can just replace the 1.6. by 1., or 1.7. (but then you'll have to remember to change it when you upgrade git to 1.8) and egg-mode will load fine, keymap and all. Use at your own risk, though; I don't know what changes version 1.7 introduced, and egg might do something unexpected.

like image 148
jathd Avatar answered Sep 28 '22 06:09

jathd


Can you do M-x customize-group for egg and check the value of egg-mode-key-prefix? This has to be set to "C-x v" for it to work properly; if you changed it anywhere (maybe in your .emacs?) the key bindings will not work properly.

like image 22
Tikhon Jelvis Avatar answered Sep 28 '22 07:09

Tikhon Jelvis