This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+os/osx
syl20bnr 1f993bddf6 Rename spacemacs-helm and spacemacs-ivy layers to helm and ivy
For ivy users: be sure to update your dotfile by replacing spacemacs-ivy
by ivy
2016-05-15 22:24:27 -04:00
..
img
config.el
keybindings.el
packages.el Rename spacemacs-helm and spacemacs-ivy layers to helm and ivy 2016-05-15 22:24:27 -04:00
README.org Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00

OSX layer

/TakeV/spacemacs/media/commit/a9c95142b9ac3bfe9b8f6b42d73a3855bac0f4bb/layers/+os/osx/img/apple.png

Description

Spacemacs is not just emacs+vim. It can have OSX keybindings too! This layer globally defines common OSX keybindings. is set to super and is set to meta. Aside from that, there's nothing much, really.

While in dired this layer will try to use gls instead of ls.

Philosophy

While this layer enables common OSX bindings, it does not implement OSX navigation keybindings. Spacemacs is meant to be used with evil, and we encourage you to do so :)

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add osx to the existing dotspacemacs-configuration-layers list in this file.

Use with non-US keyboard layouts

If you need the key to type common characters such as {[]}~ which is usual for e.g. Finnish and Swedish keyboard layouts, you'll probably want to leave the key unchanged by setting the osx-use-option-as-meta variable to nil:

  (setq-default dotspacemacs-configuration-layers '(
     (osx :variables osx-use-option-as-meta nil)))

If you have problem entering symbols that are behind the key you may want to added this to the user-init in the .spacemacs-File. This will allow you to use the right key to write symbols. The left key can be used as the Meta key.

  (setq-default mac-right-option-modifier nil)

Coreutils

To get gls install coreutils homebrew:

  brew install coreutils

Key Bindings

Key Binding Description
⌘ = Scale up text
⌘ - Scale down text
⌘ q Quit
⌘ v Paste
⌘ c Copy
⌘ x Cut
⌘ a Select all
⌘ w Close window
⌘ W Close frame
⌘ n New frame
⌘ z Undo
⌘ Z Redo
⌃ ⌘ f Toggle fullscreen

Future Work

  • Allow user to choose from either hyper or super as . This is an option that is supported cross-platform.
  • Configurable option to keep the OSX and spacemacs clipboards separate