From a217a935fdc8d309e0532cf9ccdb9651a87b01d5 Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Fri, 5 Jun 2020 22:23:21 +0200 Subject: [PATCH] updates for macos module Add support for keychain Add README. Add shortcut for open in iTerm. --- modules/config/default/+emacs-bindings.el | 3 ++- modules/config/default/+evil-bindings.el | 3 ++- modules/tools/macos/README.org | 31 +++++++++++++++++++++++ modules/tools/macos/config.el | 5 ++++ 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 modules/tools/macos/README.org create mode 100644 modules/tools/macos/config.el diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index da18c7576..34852d575 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -210,7 +210,8 @@ :desc "Send to Transmit" "u" #'+macos/send-to-transmit :desc "Send project to Transmit" "U" #'+macos/send-project-to-transmit :desc "Send to Launchbar" "l" #'+macos/send-to-launchbar - :desc "Send project to Launchbar" "L" #'+macos/send-project-to-launchbar) + :desc "Send project to Launchbar" "L" #'+macos/send-project-to-launchbar + :desc "Open in iTerm" "i" #'+macos/open-in-iterm) (:when (featurep! :tools docker) :desc "Docker" "D" #'docker) (:when (featurep! :email mu4e) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 3528697bd..f08f50a68 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -553,7 +553,8 @@ :desc "Send to Transmit" "u" #'+macos/send-to-transmit :desc "Send project to Transmit" "U" #'+macos/send-project-to-transmit :desc "Send to Launchbar" "l" #'+macos/send-to-launchbar - :desc "Send project to Launchbar" "L" #'+macos/send-project-to-launchbar) + :desc "Send project to Launchbar" "L" #'+macos/send-project-to-launchbar + :desc "Open in iTerm" "i" #'+macos/open-in-iterm) (:when (featurep! :tools docker) :desc "Docker" "D" #'docker) (:when (featurep! :email mu4e) diff --git a/modules/tools/macos/README.org b/modules/tools/macos/README.org new file mode 100644 index 000000000..a755ab277 --- /dev/null +++ b/modules/tools/macos/README.org @@ -0,0 +1,31 @@ +#+TITLE: tools/macos +#+DATE: February 19, 2017 +#+SINCE: v1.3 +#+STARTUP: inlineimages nofold + +* Table of Contents :TOC_3:noexport: +- [[#description][Description]] + - [[#maintainers][Maintainers]] +- [[#features][Features]] + +* Description +This module provides extra functionality for macOS. + +** Maintainers +This module has no dedicated maintainers + +* Features + +This module adds various macOS specific launchers under the SPC o shortcuts. + +It also enables keychain as an auth-source. This is used by apps like [[file:../../../modules/app/irc/README.org][irc]] and +[[file:../../../modules/tools/magit/README.org][magit]]'s forge module. For instance, to support GitHub Forge add an internet +password like this to your keychain: + + | Field | Value | + |----------+-------------------------| + | Name | api.github.com | + | Kind | Internet password | + | Account | ^forge | + | Where | https://api.github.com/ | + | Password | | diff --git a/modules/tools/macos/config.el b/modules/tools/macos/config.el new file mode 100644 index 000000000..e3fa1a587 --- /dev/null +++ b/modules/tools/macos/config.el @@ -0,0 +1,5 @@ +;;; tools/macos/config.el -*- lexical-binding: t; -*- + +(after! auth-source + (when IS-MAC + (pushnew! auth-sources 'macos-keychain-internet 'macos-keychain-generic)))