xahlee / xah-fly-keys

the most efficient keybinding for emacs
http://xahlee.info/emacs/misc/xah-fly-keys.html
483 stars 83 forks source link

Stay in command mode after running a file, consistency in layout order #127

Closed ghost closed 3 years ago

ghost commented 3 years ago

I'm not very familiar with git/github so these changes got bundled together.

The only thing NEEDED is xah-fly-command-mode-activate and the README.md change, which adds unmentioned layouts, the others are just cause I wanted the order to be the same everywhere.

xahlee commented 3 years ago

sorry it's a bit confusing. The code to switch to command mode after run file is incorrect. also, it should be added as a hook by user. th change about rearange key layouts, seems there's lots changes, also about order of keys.

xahlee commented 3 years ago

also, is john doe the same as celestialNebula?

ghost commented 3 years ago

Yes, I had to do that change locally then push to github.

ghost commented 3 years ago

I messed up the Elisp, this is how it should look:

          (error "No recognized program file suffix for this file"))))
    (xah-fly-command-mode-activate)
    (run-hooks 'xah-run-current-file-after-hook)))

The reason I think this should be here is cause with (add-hook 'shell-mode-hook 'xah-fly-insert-mode-activate) being adding back when you run a shell file (for example) with `xah-run-current-file' it now makes you go into insert mode; whereas before you would stay in command mode.