blob: 5873e95657077581f36948bee3366c41d5a87777 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
;;; init-mac.el --- configuration specific to macos -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:
(defvar mpolden/font-family "Iosevka" "Set the default font.")
(defvar mpolden/font-size 14 "Set the default font size in points.")
;; set font
(let ((font-family mpolden/font-family))
(when (and (display-graphic-p) (member font-family (font-family-list)))
(set-face-attribute 'default nil
:family font-family
:height (* 10 mpolden/font-size))))
;; use command as meta
(setq mac-command-modifier 'meta)
;; disable native tabs
(setq mac-frame-tabbing nil)
;; don't open files from the workspace in a new frame
(setq ns-pop-up-frames nil)
;; use old-style fullscreen
(setq ns-use-native-fullscreen nil)
;; move deleted files to ~/.Trash
(setq trash-directory "~/.Trash")
;; use paths from shell
(use-package exec-path-from-shell
:ensure t
:init (setq exec-path-from-shell-variables '("PATH" "MANPATH" "GOPATH"
"JAVA_HOME" "SSH_AUTH_SOCK"))
:config (exec-path-from-shell-initialize))
;; add binding for toggling fullscreen
(global-set-key (kbd "M-RET") 'toggle-frame-fullscreen)
;; use gls if available (which supports --dired option)
(when (executable-find "gls")
(setq insert-directory-program "gls"))
(provide 'init-mac)
;;; init-mac.el ends here
|