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

How can I set keyboard shortcuts and registers globally and permanently? #5061

Closed
3rd3 opened this issue Feb 14, 2016 · 2 comments
Closed

How can I set keyboard shortcuts and registers globally and permanently? #5061

3rd3 opened this issue Feb 14, 2016 · 2 comments
Labels
Question stale marked as a stale issue/pr (usually by a bot)

Comments

@3rd3
Copy link

3rd3 commented Feb 14, 2016

I am trying to get a permanent and global shortcut for hiding Spacemacs on OS X. I have tried the following in spacemacs/user-config, but it does not appear to work in some modes, because they override "M-h":

(global-unset-key (kbd "M-h"))
(global-set-key (kbd "M-h") 'ns-do-hide-emacs)

Moreover, I make use of registers like this, to jump directly to certain files, however sometimes the registers appear to be cleared in new frames for some reason:

(set-register ?z (cons 'file "~/.zprofile"))
@StreakyCobra
Copy link
Contributor

There are two issues here. For the first one can you try (bind-map* … instead?

For the second one I don't know. You'll probably be better to create a function that open you file, and then bind it in the SPC o prefix.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

2 participants