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

OSX contribution layer #253

Closed
wants to merge 2 commits into from
Closed

OSX contribution layer #253

wants to merge 2 commits into from

Conversation

avendael
Copy link
Contributor

A contribution layer that provides common OSX keybindings. For now, only the most rudimentary keybindings are defined. Later on, I'll add support for shifted ⌘ and ⌥ movement commands.

@trishume
Copy link
Contributor

Cool I have something similar in my .spacemacs file. One significant thing I do differently is I have some hacky logic that makes it so that every time I use the Vim d operator it doesn't nuke my OSX clipboard.

Basically I keep OSX clipboard integration disabled most of the time but I have special copy and paste functions that screw with things so that command C and V will use the OS clipboard. Not sure if this kind of hackery would be good to put in here, especially since it only works with https://github.com/railwaycat/emacs-mac-port

My .spacemacs:
https://github.com/trishume/dotfiles/blob/master/emacs%2B/spacemacs.symlink

@syl20bnr
Copy link
Owner

Nice layer, I like it.... mostly :-)

I'm ok with most of the key bindings to have a better integration with OS X environment but I'll reject all the bindings about navigation because spacemacs is meant to be used with evil.

I'll comment the keybindings to remove.

- ⌘ w: Close window
- ⌘ z: Undo
- ⌘ Z: Redo
- ⌘ ←: Move to beggining of line
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this one.

@avendael
Copy link
Contributor Author

Thank you for the feedback guys.

@trishume I'm also a user of emacs-mac-port, and for some reason I like the default behavior of having just one clipboard. We can probably make this configurable, in such a way that it would only work on emacs-mac-port. Upon looking at your dotspacemacs, I also like the idea of using either hyper or super for command. It might be better if we expose this as a configurable option.

@syl20bnr I'm ok with removing the navigation keybindings. Personally, I don't use them. The ones I regularly use are the non-navigation ones such as copy, paste, cut, and switch to full screen.

@syl20bnr
Copy link
Owner

I'm also in favor for having only one clipboard, this is what most users expect from an OS X application. It makes sense to have a configurable option for this (same clipboard) which can be turned on by default.

I'm merging this for now.

@syl20bnr
Copy link
Owner

I would add that this option should be cross-platform so if we achieve consistency across OSes/platforms we can put it in spacemacs core.

@syl20bnr
Copy link
Owner

👍

Thank you Evan ! Neat layer !
Cherry-picked into develop, you can safely delete your branch.

@syl20bnr
Copy link
Owner

@avendael @trishume Issue opened on the topic of clipboard #255

@avendael avendael deleted the osx-contrib branch December 13, 2014 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants