From d2994e221726cddf761355435d30a8a4e3849498 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 17 Jun 2020 08:28:57 -0700 Subject: [PATCH] [meta] start extracting a mac_os playbook --- ansible/playbooks/mac_os.yml | 13 +++++++++++++ osx/DefaultKeyBinding.dict | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 ansible/playbooks/mac_os.yml diff --git a/ansible/playbooks/mac_os.yml b/ansible/playbooks/mac_os.yml new file mode 100644 index 0000000..a2c70fe --- /dev/null +++ b/ansible/playbooks/mac_os.yml @@ -0,0 +1,13 @@ +- hosts: all + tasks: + - group_by: key=os_{{ ansible_distribution }} + tags: always + +- hosts: os_MacOSX + tasks: + - file: path=~/Library/KeyBindings state=directory + - name: Symlink Emacs-style keybindings for OS X + file: + src: ~/.dotfiles/osx/DefaultKeyBinding.dict + dest: ~/Library/KeyBindings/DefaultKeyBinding.dict + state: link diff --git a/osx/DefaultKeyBinding.dict b/osx/DefaultKeyBinding.dict index 2a91722..5b44de2 100644 --- a/osx/DefaultKeyBinding.dict +++ b/osx/DefaultKeyBinding.dict @@ -7,4 +7,9 @@ "~<" = "moveToBeginningOfDocument:"; "~>" = "moveToEndOfDocument:"; "~v" = "pageUp:"; + + "~[" = ("insertText:", "‘"); + "~]" = ("insertText:", "’"); + "~{" = ("insertText:", "“"); + "~}" = ("insertText:", "”"); }