Skip to content
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

additional sticky modifiers? #76

Closed
holtzermann17 opened this issue Jun 6, 2015 · 3 comments
Closed

additional sticky modifiers? #76

holtzermann17 opened this issue Jun 6, 2015 · 3 comments

Comments

@holtzermann17
Copy link

I'm liking god mode. One idea that would make it even more useful for me would be to have it extend to a "pantheon mode" -- or perhaps "trinity mode" -- or in less grand terms, a way to similate general purpose sticky modifiers. For example, I know I can do <god-mode-on>gb..<god-mode-off> instead of M-b M-b but it would be nice to either have a whole separate dispatch, so I could type <meta-mode-on>bb<meta-mode-off> or to have an option so that <god-mode-on>g is understood to be sticky, so I would type <god-mode-on>gbb<god-mode-off>.

(This is similar to issue #74, and it might work well to use key chords as the dispatches, so that, for example, gc activated <control-mode> (i.e. what is currently known as "<god mode>"), .p activated <meta-mode>, etc.; of course the specific chords could be customizable.)

@YangZhao11
Copy link
Contributor

You can just customize god-mod-alist in various settings. e.g.
(defun god-meta-mode () (interactive)
(if god-local-mode (god-mode-all)
(setq god-mod-alist '((nil . "M-")))
(god-mode-all))

I personally did not find a need for meta-mode, although I'm experimenting with god-mod-alist set to ((nil . "C-M-") ("g" . "C-")), for sexp editing.

@holtzermann17
Copy link
Author

Thanks for the hint, that should do it for me...

@holtzermann17
Copy link
Author

BTW, about a year later, I got around to implementing something that works the way I like.

https://gist.github.com/holtzermann17/ba34f4cccf732c29f6209e7e795005de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants