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

Add caps-lock package and add a toggle for it #1521

Closed
tuhdo opened this issue May 7, 2015 · 8 comments
Closed

Add caps-lock package and add a toggle for it #1521

tuhdo opened this issue May 7, 2015 · 8 comments
Labels
New Package stale marked as a stale issue/pr (usually by a bot)

Comments

@tuhdo
Copy link
Contributor

tuhdo commented May 7, 2015

caps-lock is a minor mode that when enabled, it behaves like you turned on Caps Lock. The package is here: http://elpa.gnu.org/packages/caps-lock.html

However, currently we cannot download packages from ELPA. However, given how small it is (only 23 lines of actual code) we can just include the file directly inside Spacemacs.

@tuhdo
Copy link
Contributor Author

tuhdo commented May 7, 2015

Why is it needed? Because many Emacs users (and even Vim) swapped Caps Lock for something Ctrl or Esc, and the pressing Cap Locks is less convenient. More importantly, in Emacs when you enable Caps Lock, it appends every key pressed with Shift. For example, with Caps Lock on, when you press C-a it becomes C-S-a and thus making many commands not usable. This minor mode solved that problem.

@syl20bnr
Copy link
Owner

syl20bnr commented May 8, 2015

It can be included as an extension, but I'm surprised that we cannot download any package from ELPA, the repository is not present in spacemacs ?

@tuhdo
Copy link
Contributor Author

tuhdo commented May 8, 2015

Yes, I have to add caps-lock package to dotspacemacs-additional-packages otherwise adding to my private layer package list won't download the package. Seems like a bug.

@syl20bnr
Copy link
Owner

syl20bnr commented May 8, 2015

wow that's strange, when you added it to your layer, are you sure you added an associated init function ?

@tuhdo
Copy link
Contributor Author

tuhdo commented May 8, 2015

Ah it turned out that I made a typo in my init function.

@syl20bnr
Copy link
Owner

syl20bnr commented May 8, 2015

I think that spacemacs should warn in the Messages buffer when it does not find any init function.

@TheBB
Copy link
Collaborator

TheBB commented Jan 26, 2016

@tuhdo Since it seems you have the code already, please make a PR for this or close this issue.

@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
New Package stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

3 participants