Closed ghost closed 6 years ago
@varmanishant To give you some more information, the things that M-x lists are defined here: https://github.com/yi-editor/yi/blob/bd91818cf33b78a92c9e669a5d7ca2282f503b31/yi-core/src/Yi/Config/Default.hs#L34-L74
If you want to add a command to the M-x menu you have to do something like this:
import Yi.Eval (publishedActions)
import qualified Data.HashMap.Strict as HM
import Yi.Config.Simple (defaultConfig)
import Yi.Keymap -- for the makeAction function
import Control.Lens
myConfig = defaultConfig & publishedActions %~ HM.insert "myAction" (makeAction myAction)
Thanks @noughtmare !
I did this:
example-configs/yi-all-static
, edited thestack.yaml
, addedyi-rope
toextra-deps
, addedyi-all-static
to thesubdirs
and then did astack build
andstack install
. But I still can't find thefuzzyOpen
function inM-x
.Would that not be available as a function in
M-x
? Do I need to do akeymap
invim
oremacs
mode? If so how would I go about that?