Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 2.29 KB

README.org

File metadata and controls

80 lines (59 loc) · 2.29 KB

OSX contribution layer for Spacemacs

img/apple.png

Table of Contents

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

(setq-default dotspacemacs-configuration-layers '(osx))

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)))

Coreutils

To get gls install coreutils homebrew:

brew install coreutils

Key Bindings

Key BindingDescription
⌘ +Scale up text
⌘ -Scale down text
⌘ qQuit
⌘ vPaste
⌘ cCopy
⌘ xCut
⌘ aSelect all
⌘ wClose window
⌘ WClose frame
⌘ nNew frame
⌘ zUndo
⌘ ZRedo
⌃ ⌘ fToggle 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