Egg.el loads, but inactive mode with the egg is not turned on (no "Cx v" key bindings)

All "Mx egg-" commands work fine

Mx egg-start-new-branch start new branch with name: xxx 

But all the "Cx v" key bindings are still bound to the "vc-" commands (I expected Cx vb to contact the beginning of the egg-new branch)

 Ch k Cx vb runs the command vc-switch-backend, which is an interactive 

Do I need to do something other than execution (requires an "egg")?


Additional Information

"Describe the variable: egg-minor-mode"

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

"Mx describe-minor mode" β†’ egg-secondary mode

  "no such minor mode" 
+6
source share
4 answers

A little late, but I ran into the same problem. You note in the comment that you are using git 1.7. This is because the egg requires version 1.6 to work, and actually checks that you are using this version on line 5939 . You can see that when the line does not match, the body of the when form is not executed; but this is exactly where the keyboard is installed!

So, if you want to be adventurous, you can just replace 1.6. by 1. or 1.7. (but then you will have to remember changing it when upgrading git to 1.8) and the -mode egg will load fine, keymap and that's it. However, use at your own risk; I don’t know what changes are made in version 1.7, and the egg can do something unexpected.

+4
source

Can you make Mx customize-group for an egg and check the value of egg-mode-key-prefix ? It must be set to "Cx v" for it to work properly; if you changed it anywhere (perhaps in your .emacs?), the key bindings will not work properly.

+1
source

I am not familiar with egg . Perhaps you need to be in a specific mode (for example, egg-minor-mode ) so that the key bindings you expect to be active?

If you feel / know that you are in the correct mode, and the mode key bindings are not what you expect, you can look more closely by doing this: Download the help-fns+.el and use Ch Mk to see the bindings of each layout you are interested in. See also HelpPlus .

Another idea is, of course, to look at the source code of the egg and see what happens. The Emacs debugger is your friend: Mx debug-on-entry SOME-FUNCTION .

IOW, if someone else doesn’t have any specific help available to you (sorry, I don’t do this), your best bet is to dig a bit to find out what is going on.

(Later) In fact, now I see that you mention the mode in the subject line, on your own. So try this to download the file and then enable helper mode:

 (require 'egg) (egg-minor-mode 1) 
+1
source

I have not used egg mode before, but I tried this for debugging. I installed egg.el by checking the git repository.

 git clone git://github.com/byplayer/egg.git 

After that, I started emacs, released Mx load-file and gave the path t/egg/egg.el , and it booted successfully. After that, I opened the file in this Cx Cf folder, and then t/egg/egg.el Immediately downloaded file, Emacs automatically enters Emacs-Lisp main mode and secondary mode egg. And Cx v directly shows me: Egg:file: in the status bar. Thus, everything looks great out of the box.

When you open a file to automatically test the fine-precise mode, are you sure that you open the file that is installed with git, where do you have the .git folder in the folder / path?

If you don't know more about your .emacs and settings, I cannot debug further, but I cannot reproduce your error as it is.

0
source

Source: https://habr.com/ru/post/904439/


All Articles