2016-08-28 11:20:44 +00:00
|
|
|
|
;;; config.el --- OSX Layer config File for Spacemacs
|
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2016-08-28 11:20:44 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
|
;;
|
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
;;
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
;;
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2016-08-28 11:20:44 +00:00
|
|
|
|
|
2017-03-15 03:54:13 +00:00
|
|
|
|
(defvar osx-use-option-as-meta 'deprecated
|
|
|
|
|
"DEPRECATED. See README for OSX layer for new variables. If this
|
|
|
|
|
variable is set it will take precedence (for backwards compatibility).
|
|
|
|
|
If non nil the option key is mapped to meta. Set to `nil` if you need the
|
|
|
|
|
option key to type common characters.
|
|
|
|
|
Default: `deprecated'")
|
|
|
|
|
|
2017-04-11 20:43:54 +00:00
|
|
|
|
(defvar osx-command-as 'hyper
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `COMMAND' key on macOS.
|
Various documentation copy-edits
Follow up the changes in the previous commit with some minor improvements
to formatting, grammar, spelling, and wording.
* layers/+distributions/spacemacs-docker/README.org: Replace "+" with
"and".
* layers/+email/mu4e/README.org: Use full sentences in the comments in the
mu4e-alert example.
* layers/+intl/japanese/README.org: Use verbatim markers for names of
files, functions, packages, and variables. Capitalize "Linux".
* layers/+os/osx/README.org: Capitalize "Emacs", "Vim", and "Evil".
* layers/+os/osx/config.el (osx-command-as, osx-use-dictionary-app):
* layers/+os/osx/keybindings.el (spacemacs/system-is-mac): Improve
docstrings.
* layers/+readers/dash/README.org: Capitalize "API", "Helm", and "Ivy".
* layers/+spacemacs/spacemacs-defaults/config.el
(delete-by-moving-to-trash): Use full sentences in comment.
* layers/+spacemacs/spacemacs-defaults/funcs.el
(spacemacs/toggle-frame-fullscreen-non-native): Improve docstrings.
2019-10-13 06:03:09 +00:00
|
|
|
|
Possible values are `super', `meta', `hyper', `alt', and `none'.
|
2017-04-11 20:43:54 +00:00
|
|
|
|
Default: `hyper'.")
|
|
|
|
|
;; There are problems setting osx-command-as to `alt' and `super',
|
|
|
|
|
;; so we use `hyper' as a default instead because, for example:
|
|
|
|
|
;; - Using `alt': Command-x or Command-m inserts, respectively: × µ
|
|
|
|
|
;; - Using `super': Control-Command-f produces keycode: <C-s-268632078>
|
|
|
|
|
;; Setting to `hyper' seems to avoid both types of the above problems.
|
|
|
|
|
;; Also, while it is possible, it is not recommended to set to `meta'
|
2019-10-13 05:27:17 +00:00
|
|
|
|
;; since standard macOS shortcuts would overshadow important keys such
|
2017-04-11 20:43:54 +00:00
|
|
|
|
;; as M-x.
|
|
|
|
|
|
2017-03-15 03:54:13 +00:00
|
|
|
|
(defvar osx-option-as 'meta
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `OPTION' key on macOS.
|
2017-03-15 03:54:13 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `none'.
|
|
|
|
|
Default: `meta'.
|
|
|
|
|
For backwards compatibility the variable `osx-use-option-as-meta'
|
|
|
|
|
takes precedence is set to t.")
|
2017-06-03 18:22:01 +00:00
|
|
|
|
(defvar osx-function-as nil
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `FUNCTION' key on macOS.
|
2017-06-03 18:22:01 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `nil'.
|
|
|
|
|
Default: `nil'.")
|
2017-03-15 03:54:13 +00:00
|
|
|
|
(defvar osx-control-as 'control
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `CONTROL' key on macOS.
|
2017-03-15 03:54:13 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `none'.
|
|
|
|
|
Default: `control'.")
|
|
|
|
|
|
|
|
|
|
(defvar osx-right-control-as 'left
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `RIGHT CONTROL' key on macOS.
|
2017-03-15 03:54:13 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `left' `none'.
|
|
|
|
|
Default: `left'.")
|
|
|
|
|
(defvar osx-right-command-as 'left
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `RIGHT COMMAND' key on macOS.
|
2017-03-15 03:54:13 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `left' `none'.
|
|
|
|
|
Default: `left'.")
|
|
|
|
|
(defvar osx-right-option-as 'left
|
2019-10-13 05:27:17 +00:00
|
|
|
|
"Sets the key binding of the `RIGHT OPTION' key on macOS.
|
2017-03-15 03:54:13 +00:00
|
|
|
|
Possible values are `super' `meta' `hyper' `alt' `left' `none'.
|
|
|
|
|
Default: `left'.")
|
2015-11-23 06:54:59 +00:00
|
|
|
|
|
2020-07-09 22:18:55 +00:00
|
|
|
|
(defvar osx-use-dictionary-app (spacemacs/system-is-mac)
|
Various documentation copy-edits
Follow up the changes in the previous commit with some minor improvements
to formatting, grammar, spelling, and wording.
* layers/+distributions/spacemacs-docker/README.org: Replace "+" with
"and".
* layers/+email/mu4e/README.org: Use full sentences in the comments in the
mu4e-alert example.
* layers/+intl/japanese/README.org: Use verbatim markers for names of
files, functions, packages, and variables. Capitalize "Linux".
* layers/+os/osx/README.org: Capitalize "Emacs", "Vim", and "Evil".
* layers/+os/osx/config.el (osx-command-as, osx-use-dictionary-app):
* layers/+os/osx/keybindings.el (spacemacs/system-is-mac): Improve
docstrings.
* layers/+readers/dash/README.org: Capitalize "API", "Helm", and "Ivy".
* layers/+spacemacs/spacemacs-defaults/config.el
(delete-by-moving-to-trash): Use full sentences in comment.
* layers/+spacemacs/spacemacs-defaults/funcs.el
(spacemacs/toggle-frame-fullscreen-non-native): Improve docstrings.
2019-10-13 06:03:09 +00:00
|
|
|
|
"Use the macOS dictionary app instead of Wordnet.")
|
2016-08-27 15:28:27 +00:00
|
|
|
|
|
2019-06-16 15:49:33 +00:00
|
|
|
|
(defvar osx-swap-option-and-command nil
|
|
|
|
|
"If non nil swap option key and command key")
|
|
|
|
|
|
2019-10-13 05:27:17 +00:00
|
|
|
|
;; Use the macOS Emoji font for Emoticons.
|
2015-12-02 12:29:29 +00:00
|
|
|
|
(when (fboundp 'set-fontset-font)
|
|
|
|
|
(set-fontset-font "fontset-default"
|
|
|
|
|
'(#x1F600 . #x1F64F)
|
|
|
|
|
(font-spec :name "Apple Color Emoji") nil 'prepend))
|